Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      For queries like

       

                
                  |WITH group_counts AS (
                  |  SELECT id, count(*) as Freq, CASE WHEN Freq <= 10 THEN "1" ELSE "2" END AS Group
                  |  FROM values (123) as data(id)
                  |  GROUP BY id
                  |)
                  |SELECT Group, count(*) * 100.0 / (select count(*) from group_counts) AS Percentage
                  |FROM group_counts
                  |Group BY Group
                  |ORDER BY Freq DESC;
      

      The root cause error should be the 'Order By Freq', instead of the LCA internal error. The LCA error should be preempted if there are other higher priority errors occur.

       

      Attachments

        Issue Links

          Activity

            People

              xyyu Xinyi Yu
              xyyu Xinyi Yu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: