Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15995

Calcite engine. Order by subquery containing WITH clause failed

    XMLWordPrintableJSON

Details

    Description

      For example:

      SELECT * FROM (SELECT 1) ORDER BY (WITH t AS (SELECT 1) SELECT * FROM t)
      

      Fail with error:

      Failed to validate query. org.apache.calcite.runtime.CalciteContextException: At line 1, column 58: Column 'T' not found in any table
      

      Related tests: test_correlated_subquery_cte.test_ignore

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: