Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2427

Sub-queries not supported in DML statements

    XMLWordPrintableJSON

Details

    Description

      It appears that subqueries are not supported in DML statements.
      The yield in a NPE.

      Respective testcase is disabled with reference to CALCITE-1527.

      @Ignore("CALCITE-1527")
      @Test public void testUpdateSubQuery() {
      final String sql = "update emp\n"
      + "set empno = (\n"
      + " select min(empno) from emp as e where e.deptno = emp.deptno)";
      sql(sql).ok();
      }
      

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              psockali Pressenna
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m