You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/06/02 18:28:12 UTC

[GitHub] [beam] TheNeuralBit commented on a change in pull request #14586: [WIP][BEAM-8933] bigquery arrow

TheNeuralBit commented on a change in pull request #14586:
URL: https://github.com/apache/beam/pull/14586#discussion_r644219604



##########
File path: sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIOStorageReadTest.java
##########
@@ -1351,4 +1353,20 @@ public void testReadFromBigQueryIOWithTrimmedSchema() throws Exception {
 
     p.run();
   }
+
+  private static org.apache.arrow.vector.types.pojo.Field field(

Review comment:
       Yeah the Arrow Java API isn't super intuitive. You should be able to follow the code in `ArrowConversionTest` to create a `VectorSchemaRoot`, then you can use a [`VectorUnloader`](https://arrow.apache.org/docs/java/reference/index.html?org/apache/arrow/vector/VectorUnloader.html) to make it into an `ArrowRecordBatch`.




-- 
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:
users@infra.apache.org