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

Semantic Analysis failed for GroupBy query with aliase.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None
    • Environment:

      SuSE11 SP1

      Description

      In the SQL ,

      "select empno from test t group by t.empno"

      type of query work fine where as in hive ,below exception

      "org.apache.hadoop.hive.ql.parse.SemanticException: line 1:7 Expression Not In Group By Key ename".

      For the above, column_name with aliase work fine i.e

      "select t.empno from test t group by t.empno" is work fine.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rohithsharma Rohith Sharma K S
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: