You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/04/15 01:34:55 UTC

[GitHub] [calcite-avatica] bakea commented on a change in pull request #94: [CALCITE-2939] NPE when executeBatch array type.

bakea commented on a change in pull request #94: [CALCITE-2939] NPE when executeBatch array type.
URL: https://github.com/apache/calcite-avatica/pull/94#discussion_r275186952
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/avatica/remote/TypedValue.java
 ##########
 @@ -359,6 +359,9 @@ private static Object serialToJdbc(ColumnMetaData.Rep type, ColumnMetaData.Rep c
           copy.add(serialToJdbc(componentRep, null, o, calendar));
         }
       }
+      if (componentRep == null && list.size() > 0) {
+        componentRep = ((TypedValue) list.get(0)).type;
 
 Review comment:
   I think so.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services