You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jiajun Xie (Jira)" <ji...@apache.org> on 2023/06/28 10:54:00 UTC

[jira] [Created] (CALCITE-5805) SelectNamespace throws NullPointerException while validating MERGE statement

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)