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

Partitioning support for materialized views

    XMLWordPrintableJSON

Details

    Description

      We should support defining a partitioning specification for materialized views and that the results of the materialized view evaluation are stored meeting the partitioning spec.

      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, ...)] -- 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-14493.patch
          70 kB
          Jesus Camacho Rodriguez
        2. HIVE-14493.01.patch
          183 kB
          Jesus Camacho Rodriguez

        Issue Links

          Activity

            People

              jcamachorodriguez Jesus Camacho Rodriguez
              jcamachorodriguez Jesus Camacho Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: