Skip to content

Commit 82d8dfb

Browse files
committed
Feature flag
Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent d3e25d1 commit 82d8dfb

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

misc/python/materialize/mzcompose/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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",

src/sql/src/plan/statement/ddl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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() {

src/sql/src/session/vars/definitions.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

22292235
impl From<&super::SystemVars> for OptimizerFeatures {

0 commit comments

Comments
 (0)