Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.0
-
None
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
Attachments
Issue Links
- is blocked by
-
HIVE-20241 Support partitioning spec in CTAS statements
- Closed
- is related to
-
HIVE-18842 CLUSTERED ON/DISTRIBUTED ON+SORTED ON support for materialized views
- Closed
-
HIVE-20314 Include partition pruning in materialized view rewriting
- Closed
- links to