Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4487

Fix attribute reference resolution error when using ORDER BY.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:

      Description

      When we use ORDER BY clause, at first, attributes referenced by projection are resolved (1).
      And then, attributes referenced at ORDER BY clause are resolved (2).
      But when resolving attributes referenced at ORDER BY clause, the resolution result generated in (1) is discarded so for example, following query fails.

      SELECT c1 + c2 FROM mytable ORDER BY c1;
      

      The query above fails because when resolving the attribute reference 'c1', the resolution result of 'c2' is discarded.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sarutak Kousuke Saruta
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: