Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20215

Hive unable to plan/compile query containing subquery with multiple same name columns

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query Planning
    • Labels:
      None
    • Target Version/s:

      Description

      Reproducer
      ======================

      >create table t1(c1 int)
      >explain select count(*) from (select c1, c1 from t1) subq
      
      FAILED: SemanticException [Error 10007]: Ambiguous column reference c1 in subq
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vgarg Vineet Garg
                Reporter:
                vgarg Vineet Garg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: