Github user paul-rogers commented on a diff in the pull request:
https://github.com/apache/drill/pull/1125#discussion_r172105435
--- Diff:
exec/vector/src/main/java/org/apache/drill/exec/vector/complex/RepeatedMapVector.java
---
@@ -608,4 +608,22 @@ public void collectLedgers(Set<BufferLedger> ledgers) {
public void toNullable(ValueVector nullableVector) {
throw new UnsupportedOperationException();
}
+
+ @Override
+ public int getPayloadByteCount(int valueCount) {
+ if (valueCount == 0) {
+ return 0;
+ }
+
+ int count = 0;
+
+ int entryCount = offsets.getAccessor().get(valueCount);
+ count += offsets.getPayloadByteCount(valueCount);
--- End diff --
```
int count = offsets.get...
```
---