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

Give error if ORDER BY clause references ambiguous column name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.11.0
    • 1.12.0
    • None
    • None

    Description

      When I use calcite, I found follow sql can convert to a RelNode correctly.

       
      SELECT id AS t1, name AS t1 FROM T ORDER BY t1
      

      The column name t1 for ORDER BY is ambiguous, should check at validation?

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              dongming Dongming Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: