asheeshgarg commented on issue #14812:
URL: https://github.com/apache/arrow/issues/14812#issuecomment-1335366234

   I have created a base vector with same schema and allocated  
   VectorSchemaRoot vectorSchemaRoot = 
VectorSchemaRoot.create(tempSchemaRoot.getSchema(), allocator); listener = 
flightClient.startPut( FlightDescriptor.path("profiles"), vectorSchemaRoot, new 
AsyncPutListener())
   
   So every time when we read a  columnarbatch from iceberg we can convert it 
to 
    for (ColumnarBatch batch : itr) { 
      VectorSchemaRoot root = batch.createVectorSchemaRootFromVectors(); 
     List<FieldVector> fieldVectors = root.getFieldVectors();
     vectorSchemaRoot = VectorSchemaRoot.of(fieldVectors.toArray(new 
FieldVector[0]));
   sync the vector to server buffer
   listener.putNext();
   
   It seems to be putting the right schema but all nulls.
   
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to