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.01.patch
          183 kB
          jcamachorodriguez
        2. HIVE-14493.patch
          70 kB
          jcamachorodriguez

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: