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

support select distinct *

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.0
    • None
    • Query Processor
    • None

    Description

      Error is reported when running query "select distinct * from t".
      It is a common feature that is better to be supported.

      Did some investigation about this issue. In current implementation "select distinct a,b,c from t" is translated to "select a,b,c from t group by a,b,c". So select distinct * is translated literally to "select * from group by *". But * is not handled properly when processing groupby expressions.

      Attachments

        1. HIVE-3199.for0.9.0.patch
          19 kB
          Shane Huang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shane.huang Shane Huang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: