You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2016/08/09 17:33:20 UTC
[jira] [Created] (HIVE-14494) Add support for BUILD DEFERRED
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)