Jiajun Xie created CALCITE-5805:
-----------------------------------

             Summary: SelectNamespace throws NullPointerException while 
validating MERGE statement
                 Key: CALCITE-5805
                 URL: https://issues.apache.org/jira/browse/CALCITE-5805
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Jiajun Xie
            Assignee: Jiajun Xie


{code:java}
final String sql = "merge into empnullables e "
    + "using (select * from emp where deptno is null) t "
    + "on e.empno = t.empno "
    + "when matched then update "
    + "set ename = t.ename, deptno = t.deptno, sal = t.sal * .1 "
    + "when not matched then insert (empno, ename, deptno, sal) "
    + "values(t.empno, t.ename, 10, t.sal * .15)";
sql(sql).ok(); // Expected it is ok, but failed{code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to