Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-4330

Hive: AS clause with subqueries having group bys is not propogated to the outer query block

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.19.0
    • Component/s: None
    • Labels:
      None

      Description

      The query of the following form:

      select a.c1, a.c2 from (select b.c1 as c1, count(b.c2) as c2 from b group by b.c1) where a.c1 > 100

      does not work as the c1 and c2 aliases are not recognized by the outer query block.

        Attachments

          Activity

            People

            • Assignee:
              athusoo Ashish Thusoo
              Reporter:
              athusoo Ashish Thusoo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: