Jesus Camacho Rodriguez created HIVE-14494:
----------------------------------------------

             Summary: Add support for BUILD DEFERRED
                 Key: HIVE-14494
                 URL: https://issues.apache.org/jira/browse/HIVE-14494
             Project: Hive
          Issue Type: Sub-task
          Components: Materialized views
    Affects Versions: 2.2.0
            Reporter: Jesus Camacho Rodriguez


This is an important feature, as it allows to declare materialized views but do 
not materialize them till they are used for the first use, or a REBUILD 
statement is executed. The extension for the CREATE MATERIALIZED VIEW syntax 
should be as follows:

{code:sql}
CREATE MATERIALIZED VIEW [IF NOT EXISTS] [db_name.]table_name
  [BUILD DEFERRED] -- NEW!
  [COMMENT table_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;
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to