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?