jcralmeida commented on a change in pull request #11982:
URL: https://github.com/apache/arrow/pull/11982#discussion_r784131641
##########
File path:
java/flight/flight-sql/src/test/java/org/apache/arrow/flight/sql/example/FlightSqlExample.java
##########
@@ -429,6 +453,77 @@ private static VectorSchemaRoot getRoot(final ResultSet
data, final BufferAlloca
return new VectorSchemaRoot(singletonList(dataVector));
}
+ private static VectorSchemaRoot getTypeInfoRoot(CommandGetTypeInfo request,
ResultSet typeInfo,
+ final BufferAllocator
allocator)
+ throws SQLException {
+ Objects.requireNonNull(allocator, "BufferAllocator cannot be null.");
+
+ VarCharVector typeNameVector = new VarCharVector("type_name", allocator);
Review comment:
Add the use of VectorSchemaRoot.create()
--
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]