File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
misc/python/materialize/mzcompose Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ def get_minimal_system_parameters(
108108 "enable_refresh_every_mvs" : "true" ,
109109 "enable_repr_typecheck" : "true" ,
110110 "enable_cluster_schedule_refresh" : "true" ,
111+ "enable_replacement_materialized_views" : "true" ,
111112 "enable_sql_server_source" : "true" ,
112113 "enable_statement_lifecycle_logging" : "true" ,
113114 "enable_compute_temporal_bucketing" : "true" ,
Original file line number Diff line number Diff line change @@ -3045,6 +3045,8 @@ pub fn plan_create_replacement_materialized_view(
30453045 scx : & StatementContext ,
30463046 mut stmt : CreateReplacementMaterializedViewStatement < Aug > ,
30473047) -> Result < Plan , PlanError > {
3048+ scx. require_feature_flag ( & vars:: ENABLE_REPLACEMENT_MATERIALIZED_VIEWS ) ?;
3049+
30483050 let target_item = scx. get_item_by_resolved_name ( & stmt. target_name ) ?;
30493051
30503052 if target_item. id ( ) . is_system ( ) {
Original file line number Diff line number Diff line change @@ -2224,6 +2224,12 @@ feature_flags!(
22242224 default : false ,
22252225 enable_for_item_parsing: false ,
22262226 } ,
2227+ {
2228+ name: enable_replacement_materialized_views,
2229+ desc: "Whether to enable replacement materialized views." ,
2230+ default : false ,
2231+ enable_for_item_parsing: true ,
2232+ } ,
22272233) ;
22282234
22292235impl From < & super :: SystemVars > for OptimizerFeatures {
You can’t perform that action at this time.
0 commit comments