5ce89cb421
* 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>
13 lines
532 B
SQL
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'); |