[ 
https://issues.apache.org/jira/browse/HIVE-14497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15756700#comment-15756700
 ] 

Lefty Leverenz edited comment on HIVE-14497 at 11/14/17 5:04 AM:
-----------------------------------------------------------------

Doc note:  This needs to be documented with a new section in the DDL wikidoc, 
perhaps after Create/Drop/Alter View.

* [Hive DDL | 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-HiveDataDefinitionLanguage]

Added a TODOC2.2 label.

Update 14/Nov/17:  Changed the label to TODOC2.3.


was (Author: le...@hortonworks.com):
Doc note:  This needs to be documented with a new section in the DDL wikidoc, 
perhaps after Create/Drop/Alter View.

* [Hive DDL | 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-HiveDataDefinitionLanguage]

Added a TODOC2.2 label.

> Fine control for using materialized views in rewriting
> ------------------------------------------------------
>
>                 Key: HIVE-14497
>                 URL: https://issues.apache.org/jira/browse/HIVE-14497
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Materialized views
>    Affects Versions: 2.2.0
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>              Labels: TODOC2.3
>             Fix For: 2.3.0
>
>
> 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:
> {code:sql}
> 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;
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to