Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/user/content/reference/system-catalog/mz_internal.md
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,8 @@ The `mz_webhook_sources` table contains a row for each webhook source in the sys
<!-- RELATION_SPEC_UNDOCUMENTED mz_internal.mz_object_oid_alias -->
<!-- RELATION_SPEC_UNDOCUMENTED mz_internal.mz_objects_id_namespace_types -->
<!-- RELATION_SPEC_UNDOCUMENTED mz_internal.mz_console_cluster_utilization_overview -->
<!-- RELATION_SPEC_UNDOCUMENTED mz_internal.mz_console_cluster_utilization_overview_3h -->
<!-- RELATION_SPEC_UNDOCUMENTED mz_internal.mz_console_cluster_utilization_overview_24h -->
<!-- RELATION_SPEC_UNDOCUMENTED mz_internal.mz_object_arrangement_sizes -->
<!-- RELATION_SPEC_UNDOCUMENTED mz_internal.mz_object_arrangement_size_history -->

Expand Down
1 change: 1 addition & 0 deletions src/adapter/src/catalog/open.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ fn add_new_remove_old_builtin_items_migration(
// We compare the builtin items that are compiled into the binary with the builtin items that
// are persisted in the catalog to discover new and deleted builtin items.
let mut builtins = Vec::new();

for builtin in BUILTINS::iter() {
let desc = SystemObjectDescription {
schema_name: builtin.schema().to_string(),
Expand Down
10 changes: 10 additions & 0 deletions src/adapter/src/catalog/open/builtin_schema_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,16 @@ static MIGRATIONS: LazyLock<Vec<MigrationStep>> = LazyLock::new(|| {
MZ_INTERNAL_SCHEMA,
"mz_comments",
),
// Required because we added the console cluster-utilization overview builtin
// indexes (overview/_3h/_24h). make_mz_indexes inlines the builtin-index set
// as VALUES, so any add/remove changes its SQL fingerprint and requires an
// explicit replacement step.
MigrationStep::replacement(
"26.32.0-dev.0",
CatalogItemType::MaterializedView,
MZ_CATALOG_SCHEMA,
"mz_indexes",
),
]
});

Expand Down
4 changes: 4 additions & 0 deletions src/catalog/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,8 @@ pub static BUILTINS_STATIC: LazyLock<Vec<Builtin<NameReference>>> = LazyLock::ne
Builtin::View(&MZ_MATERIALIZATION_DEPENDENCIES),
Builtin::View(&MZ_MATERIALIZATION_LAG),
Builtin::View(&MZ_CONSOLE_CLUSTER_UTILIZATION_OVERVIEW),
Builtin::View(&MZ_CONSOLE_CLUSTER_UTILIZATION_OVERVIEW_3H),
Builtin::View(&MZ_CONSOLE_CLUSTER_UTILIZATION_OVERVIEW_24H),
Builtin::View(&MZ_COMPUTE_ERROR_COUNTS_PER_WORKER),
Builtin::View(&MZ_COMPUTE_ERROR_COUNTS),
Builtin::Source(&MZ_COMPUTE_ERROR_COUNTS_RAW_UNIFIED),
Expand Down Expand Up @@ -1469,6 +1471,8 @@ pub static BUILTINS_STATIC: LazyLock<Vec<Builtin<NameReference>>> = LazyLock::ne
Builtin::Index(&MZ_SECRETS_IND),
Builtin::Index(&MZ_VIEWS_IND),
Builtin::Index(&MZ_CONSOLE_CLUSTER_UTILIZATION_OVERVIEW_IND),
Builtin::Index(&MZ_CONSOLE_CLUSTER_UTILIZATION_OVERVIEW_3H_IND),
Builtin::Index(&MZ_CONSOLE_CLUSTER_UTILIZATION_OVERVIEW_24H_IND),
Builtin::Index(&MZ_CLUSTER_DEPLOYMENT_LINEAGE_IND),
Builtin::Index(&MZ_CLUSTER_REPLICA_FRONTIERS_IND),
Builtin::Index(&MZ_COMPUTE_HYDRATION_TIMES_IND),
Expand Down
Loading
Loading