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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.19.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: