davisusanibar commented on code in PR #12941:
URL: https://github.com/apache/arrow/pull/12941#discussion_r855522488


##########
java/flight/flight-sql/src/main/java/org/apache/arrow/flight/sql/FlightSqlClient.java:
##########
@@ -346,7 +345,7 @@ public FlightInfo getExportedKeys(final TableRef tableRef, 
final CallOption... o
     }
 
     Objects.requireNonNull(tableRef.getTable());
-    builder.setTable(tableRef.getTable()).build();

Review Comment:
   If it is deleted `builder.setTable(tableRef.getTable()).build();`, errors 
appear like these:
   ````
   [ERROR] Failures: 
   [ERROR]   TestFlightSql.testGetCommandExportedKeys:589 expected:<1> but 
was:<0>
   [ERROR]   TestFlightSql.testGetCommandImportedKeys:619 expected:<1> but 
was:<0>
   [ERROR] Errors: 
   [ERROR]   TestFlightSql.testGetPrimaryKey:505 ยป IndexOutOfBounds Index 0 out 
of bounds f...
   [INFO] 
   [ERROR] Tests run: 47, Failures: 2, Errors: 1, Skipped: 0
   
   ````



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