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

CLUSTERED ON/DISTRIBUTED ON+SORTED ON support for materialized views

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      We should support defining a CLUSTERED ON/DISTRIBUTED ON+SORTED ON specification for materialized views.

      The syntax should be extended as follows:

      CREATE MATERIALIZED VIEW [IF NOT EXISTS] [db_name.]materialized_view_name
        [COMMENT materialized_view_comment]
        [PARTITIONED ON (col_name, ...)]
        [CLUSTERED ON (col_name, ...) | DISTRIBUTED ON (col_name, ...) SORTED ON (col_name, ...)] -- NEW!
        [
         [ROW FORMAT row_format] 
         [STORED AS file_format]
           | STORED BY 'storage.handler.class.name' [WITH SERDEPROPERTIES (...)]
        ]
        [LOCATION hdfs_path]
        [TBLPROPERTIES (property_name=property_value, ...)]
        AS select_statement;
      

      Attachments

        1. HIVE-18842.patch
          347 kB
          Jesus Camacho Rodriguez
        2. HIVE-18842.01.patch
          347 kB
          Jesus Camacho Rodriguez
        3. HIVE-18842.01.patch
          347 kB
          Jesus Camacho Rodriguez
        4. HIVE-18842.02.patch
          354 kB
          Jesus Camacho Rodriguez
        5. HIVE-18842.03.patch
          374 kB
          Jesus Camacho Rodriguez
        6. HIVE-18842.03.patch
          374 kB
          Jesus Camacho Rodriguez
        7. HIVE-18842.04.patch
          375 kB
          Jesus Camacho Rodriguez
        8. HIVE-18842.04.patch
          375 kB
          Jesus Camacho Rodriguez

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jcamachorodriguez Jesus Camacho Rodriguez Assign to me
            jcamachorodriguez Jesus Camacho Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 1h 40m
              1h 40m

              Slack

                Issue deployment