chenjunjiedada commented on a change in pull request #1356:
URL: https://github.com/apache/iceberg/pull/1356#discussion_r489393108



##########
File path: 
arrow/src/main/java/org/apache/iceberg/arrow/vectorized/VectorizedArrowReader.java
##########
@@ -354,6 +360,40 @@ public void setBatchSize(int batchSize) {
     }
   }
 
+  private static final class PositionVectorReader extends 
VectorizedArrowReader {
+    private long rowStart;
+
+    @Override
+    public VectorHolder read(VectorHolder reuse, int numValsToRead) {
+      Field arrowField = ArrowSchemaUtil.convert(MetadataColumns.ROW_POSITION);
+      FieldVector vec = 
arrowField.createVector(ArrowAllocation.rootAllocator());
+      ((BigIntVector) vec).allocateNew(numValsToRead);

Review comment:
       Make sense to me, updated in 
https://github.com/apache/iceberg/pull/1356/commits/73de3696204c8fe1ed99cfddda2cf488c413f735




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to