tencent cloud

All product documents
Data Lake Compute
Materialized View Statement
Last updated: 2025-03-05 16:04:34
Materialized View Statement
Last updated: 2025-03-05 16:04:34
Description:
The following statement for materialized views is supported only by Presto and SparkSQL engines. For detailed usage instructions, see the Materialized View documentation.

CREATE MATERIALIZED

Create a materialized view:
CREATE MATERIALIZED VIEW [IF NOT EXISTS] mv_identifier
[ENABLE | DISABLE REWRITE]
[COMMENT mv_comment]
[WITH META LINK]
[TBLPROPERTIES (key1=value1, key2=value2,...)]
[AS] select_query

DROP MATERIALIZED

Delete a materialized view:
DROP MATERIALIZED VIEW [IF EXISTS] mv_identifier

DESCRIBE MATERIALIZED

Describe a materialized view:
[DESCRIBE | DESC] MATERIALIZED VIEW mv_identifier

REFRESH MATERIALIZED

Refresh a materialized view:
REFRESH MATERIALIZED VIEW mv_identifier

SHOW MATERIALIZED VIEW JOBS

Display the execution task list of materialized views, providing insights into the refresh history and status of the materialized view.
SHOW MATERIALIZED VIEW JOBS IN mv_identifier

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon