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

SqlToRelConverter substituteSubQuery problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      final String sql = "select \n" + " case \n"
      + " when deptno in (1) then '1'\n"
      + "when deptno in (220) then '220' \n"
      + "else null end as deptno,\n"
      + "name,\n"
      + "count(distinct name)as num\n"
      + "from dept\n" + "\n"
      + "where \n"
      + "deptno in(1)\n"
      + " group by name,deptno ";

      Sql like that ,SqlToRelConverter cannot convert from sql to node.
      Bzc,substituteSubQuery handle wrong.

      Attachments

        Issue Links

          Activity

            People

              danny0405 Danny Chen
              Sharpshow TIsNotT
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1.5h
                  1.5h