Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14484 Extensions for initial materialized views implementation
  3. HIVE-14497

Fine control for using materialized views in rewriting

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: Materialized views
    • Labels:

      Description

      Follow-up of HIVE-14495. Since the number of materialized views in the system might grow very large, and query rewriting using materialized views might be very expensive, we need to include a mechanism to enable/disable materialized views for query rewriting.

      Thus, we should extend the CREATE MATERIALIZED VIEW statement as follows:

      CREATE MATERIALIZED VIEW [IF NOT EXISTS] [db_name.]materialized_view_name
        [BUILD DEFERRED]
        [ENABLE REWRITE] -- NEW!
        [COMMENT materialized_view_comment]
        [
         [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

          Issue Links

            Activity

              People

              • Assignee:
                jcamachorodriguez Jesus Camacho Rodriguez
                Reporter:
                jcamachorodriguez Jesus Camacho Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: