danny0405 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_r274870256
##########
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:
If we still can not got the type, we should throw an exception, can you
please add a check here ?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services