Ap-95671 commented on code in PR #1546:
URL: https://github.com/apache/arrow-java/pull/1546#discussion_r4787180852


##########
flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/accessor/impl/complex/ArrowFlightJdbcStructVectorAccessor.java:
##########
@@ -53,6 +54,14 @@ public Object getObject() {
     return object;
   }
 
+  @Override
+  public <T> T getObject(Class<T> type) throws SQLException {
+    if (type == Struct.class) {
+      return type.cast(getStruct());

Review Comment:
   Thanks for the update. I retested 
`ResultSetTest#testStructMetadataAndObjectAccess` at `aecdef0c` on JDK 21. The 
test passed and covers default mapping for null and empty maps and 
`SQLFeatureNotSupportedException` for a nonempty map. This addresses my 
original concern. Verification assisted by Codex.



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