Vladimir Sitnikov created CALCITE-4308:
------------------------------------------

             Summary: JointNode in Iterpreter might fail with NPE for FULL join
                 Key: CALCITE-4308
                 URL: https://issues.apache.org/jira/browse/CALCITE-4308
             Project: Calcite
          Issue Type: Sub-task
          Components: core
    Affects Versions: 1.25.0
         Environment: 
https://github.com/apache/calcite/blob/64a0ca71038da14f0f883f169aa95df00d909e06/core/src/main/java/org/apache/calcite/interpreter/JoinNode.java#L85

{code:java}
    if (rel.getJoinType() == JoinRelType.FULL) {
      // send un-match rows for full join on right source
      List<Row> empty = new ArrayList<>();
      for (Row row: innerRows) { // <-- NPE here
        if (matchRowSet.contains(row)) {
          continue;
        }
        doSend(row, empty, JoinRelType.RIGHT);
      }
    }
{code}
            Reporter: Vladimir Sitnikov






--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to