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 2020/07/27 06:43:58 UTC

[GitHub] [calcite] rubenada commented on a change in pull request #2083: [CALCITE-4139] Prevent NPE in ListTransientTable

rubenada commented on a change in pull request #2083:
URL: https://github.com/apache/calcite/pull/2083#discussion_r460677678



##########
File path: core/src/main/java/org/apache/calcite/schema/impl/ListTransientTable.java
##########
@@ -99,6 +99,9 @@ public ListTransientTable(String name, RelDataType rowType) {
           // TODO cleaner way to handle non-array objects?
           @Override public Object[] current() {
             Object current = list.get(i);
+            if (current == null) {
+              return null;
+            }

Review comment:
       ListTransientTable is currently used in combination with repeatUnion to support recursive queries. So we could get to this scenario if we have a null involved in the repeatUnion.




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