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

DISTRIBUTE BY should support expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.3.0
    • Query Processor
    • None
    • Reviewed
    • HIVE-300. DISTRIBUTE BY now supports expressions. (zshao)

    Description

      We should support this kind of query. Distribute By only generates the hash-code, so it's easy to allow expressions (while it will be hard for Sort By and Cluster By).

      SELECT a.key, a.value FROM a
      DISTRIBUTE BY rand()
      

      Attachments

        1. HIVE-300.1.patch
          19 kB
          Zheng Shao

        Activity

          People

            zshao Zheng Shao
            zshao Zheng Shao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: