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

Sub-queries not supported in DML statements

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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

                Slack

                  Issue deployment