yucheng-du commented on code in PR #1546:
URL: https://github.com/apache/arrow-java/pull/1546#discussion_r4775482336


##########
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:
   Fixed in aecdef0. Empty and null type maps now return the same attributes as 
getAttributes(). A nonempty map throws SQLFeatureNotSupportedException. The 
regression test covers all three cases. I also checked nested structs and null 
rows over a local Flight SQL connection on JDK 21. The JDBC core Maven build 
and its dependencies passed (4,697 tests passed, 74 skipped).



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