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

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

    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

              People

              • Assignee:
                jcamachorodriguez Jesus Camacho Rodriguez
                Reporter:
                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