XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • SQL
    • None

    Description

      Although there are very few legitimate reasons to have both "select distinct" and "group by" in the same query, it is still used from time to time and other systems support it.

      Illustrating the issue:

      hive> create table test (c1 integer);
      OK
      Time taken: 0.073 seconds
      hive> select distinct c1 from test group by c1;
      FAILED: SemanticException 1:38 SELECT DISTINCT and GROUP BY can not be in the same query. Error encountered near token 'c1'
      

      Attachments

        Issue Links

          Activity

            People

              anshuman.dwivedi Anshuman
              cartershanklin Carter Shanklin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: