asheeshgarg opened a new issue, #14812: URL: https://github.com/apache/arrow/issues/14812
### Describe the usage question you have. Please include as many useful details as possible. I am trying to write the Iceberg data to Arrow flight server using the example described here https://arrow.apache.org/cookbook/java/flight.html I am reading files from Icebereg `VectorSchemaRoot vectorSchemaRoot = VectorSchemaRoot.create(tempSchemaRoot.getSchema(), allocator); listener = flightClient.startPut( FlightDescriptor.path("profiles"), vectorSchemaRoot, new AsyncPutListener()); try (VectorizedTableScanIterable itr = new VectorizedTableScanIterable(filteredScan, 10000, false); ) { vectorSchemaRoot.allocateNew(); for (ColumnarBatch batch : itr) { VectorSchemaRoot root = batch.createVectorSchemaRootFromVectors(); List<FieldVector> fieldVectors = root.getFieldVectors(); vectorSchemaRoot = VectorSchemaRoot.of(fieldVectors.toArray(new FieldVector[0])); listener.putNext(); break; } }catch(Exception e){ System.out.println(e); } listener.completed(); listener.getResult();` @lwhite1 When try to read the data back I don't get the records. Is there any example on how to create a streaming write to Arrow Flight from multiple batches of vectorschema root that you get from reading a file. ### Component(s) FlightRPC -- 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]
