knut-forkalsrud commented on a change in pull request #170:
URL: https://github.com/apache/calcite-avatica/pull/170#discussion_r784447931



##########
File path: 
core/src/main/java/org/apache/calcite/avatica/util/AbstractCursor.java
##########
@@ -423,6 +423,10 @@ public Reader getNCharacterStream() throws SQLException {
     }
 
     public <T> T getObject(Class<T> type) throws SQLException {
+      Object val = getObject();
+      if (val == null || type == null || 
type.isAssignableFrom(val.getClass())) {

Review comment:
       or possibly `type.isInstance(val)`




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