Help Center/ AI DataLake/ Spark reference/ Materialized Views/ Intelligent Materialized Views/ Syntax Reference
Updated on 2026-11-06 GMT+08:00
Syntax Reference
- Create an intelligent materialized view.
Create a materialized view based on a SQL query.
CREATE LAKE MATERIALIZED VIEW [IF NOT EXISTS] view_name [(<col_name> [COMMENT <col_comment>], ...)] [COMMENT '...'] [PARTITIONED BY col1, col2, ...] [ CLUSTERED BY (col_name3, col_name4, ...) [ SORTED BY (col_name [ ASC | DESC], ...)] INTO num_buckets BUCKETS] [TBLPROPERTIES ('key'='value', ...)] REFRESH POLICY AUTO | INCREMENTAL | INCREMENTAL STRICT | FULL SCHEDULE EVERY MINUTES| HOURS | DAYS AS <SELECT query>;REFRESH POLICY AUTO | INCREMENTAL | INCREMENTAL STRICT | FULL specifies the refresh strategy.
SCHEDULE EVERY MINUTES| HOURS | DAYS specifies the refresh schedule. Parameter limits are as follows:
- MINUTES: 1 <= M <= 60
- HOURS: 1 <= H <= 72
- DAYS: 1 <= D <= 7
Parent topic: Intelligent Materialized Views
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot