lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/alterMaterializedView.sql
JackWang032 5ce89cb421
feat(spark): support materialized view for spark sql (#262)
* feat(spark): support materialized view for spark sql

* fix(spark): code review update

* fix(spark): update spark  materilized view and zorder grammar

* test(spark): add syntaxSuggestion test of materialized view

---------

Co-authored-by: jialan <jialan@dtstack.com>
2024-02-26 17:25:19 +08:00

13 lines
532 B
SQL

-- ALTER MATERIALIZED VIEW view_identifier ENABLE|DISABLE REWRITE;
ALTER MATERIALIZED VIEW mv ENABLE REWRITE;
ALTER MATERIALIZED VIEW userDB.mv ENABLE REWRITE;
ALTER MATERIALIZED VIEW mv DISABLE REWRITE;
-- ALTER MATERIALIZED VIEW view_identifier SET TBLPROPERTIES ( property_name=property_value, ... );
ALTER MATERIALIZED VIEW mv SET TBLPROPERTIES ('mv.enableAutoRefresh'='true', 'mv.refreshInterval'='10min');
ALTER MATERIALIZED VIEW userDB.mv SET TBLPROPERTIES ('mv.enableAutoRefresh'='true', 'mv.refreshInterval'='10min');