Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
Description
We should support defining a CLUSTERED ON/DISTRIBUTED ON+SORTED ON specification for materialized views.
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, ...)] [CLUSTERED ON (col_name, ...) | DISTRIBUTED ON (col_name, ...) SORTED 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 related to
-
HIVE-21945 Enable sorted dynamic partitioning optimization for materialized views with custom data organization
- Open
-
HIVE-21946 Consider data organization of a materialized view in transparent rewriting
- Open
-
HIVE-21953 Enable CLUSTERED ON/DISTRIBUTED ON+SORTED ON in incremental rebuild of materialized views
- Open
- relates to
-
HIVE-14493 Partitioning support for materialized views
- Closed
- links to