Skip to content

Commit 057da6d

Browse files
committed
show_data_lake_catalogs_in_system_tables is enabled by default
1 parent 55f328f commit 057da6d

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/Core/Settings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6488,7 +6488,7 @@ Query Iceberg table using the snapshot that was current at a specific timestamp.
64886488
DECLARE(Int64, iceberg_snapshot_id, 0, R"(
64896489
Query Iceberg table using the specific snapshot id.
64906490
)", 0) \
6491-
DECLARE(Bool, show_data_lake_catalogs_in_system_tables, false, R"(
6491+
DECLARE(Bool, show_data_lake_catalogs_in_system_tables, true, R"(
64926492
Enables showing data lake catalogs in system tables.
64936493
)", 0) \
64946494
DECLARE(Bool, delta_lake_enable_expression_visitor_logging, false, R"(

src/Core/SettingsChangesHistory.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ const VersionToSettingsChangesMap & getSettingsChangesHistory()
5555
{"export_merge_tree_part_file_already_exists_policy", "skip", "skip", "New setting."},
5656
{"iceberg_timezone_for_timestamptz", "UTC", "UTC", "New setting."},
5757
{"hybrid_table_auto_cast_columns", true, true, "New setting to automatically cast Hybrid table columns when segments disagree on types. Default enabled."},
58-
{"allow_experimental_hybrid_table", false, false, "Added new setting to allow the Hybrid table engine."}
59-
{"show_data_lake_catalogs_in_system_tables", true, false, "Disable catalogs in system tables by default"},
58+
{"allow_experimental_hybrid_table", false, false, "Added new setting to allow the Hybrid table engine."},
6059
{"optimize_rewrite_like_perfect_affix", false, true, "New setting"},
6160
{"allow_dynamic_type_in_join_keys", true, false, "Disallow using Dynamic type in JOIN keys by default"},
6261
{"use_skip_indexes_on_data_read", false, true, "Enabled skip index usage in read phase by default"},

tests/integration/test_database_glue/test.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,20 +619,24 @@ def test_system_tables(started_cluster):
619619

620620
# system.tables
621621
assert int(node.query(f"SELECT count() FROM system.tables WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%' SETTINGS show_data_lake_catalogs_in_system_tables = true").strip()) == 4
622-
assert int(node.query(f"SELECT count() FROM system.tables WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%'").strip()) == 0
622+
assert int(node.query(f"SELECT count() FROM system.tables WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%'").strip()) == 4
623+
assert int(node.query(f"SELECT count() FROM system.tables WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%' SETTINGS show_data_lake_catalogs_in_system_tables = false").strip()) == 0
623624

624625
# system.iceberg_history - always displays irrespective of show_data_lake_catalogs_in_system_tables
625626
assert int(node.query(f"SELECT count() FROM system.iceberg_history WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%' SETTINGS show_data_lake_catalogs_in_system_tables = true").strip()) == 4
626627
assert int(node.query(f"SELECT count() FROM system.iceberg_history WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%' SETTINGS show_data_lake_catalogs_in_system_tables = false").strip()) == 4
627628

628629
# system.databases
629630
assert int(node.query(f"SELECT count() FROM system.databases WHERE name = '{CATALOG_NAME}' SETTINGS show_data_lake_catalogs_in_system_tables = true").strip()) == 1
630-
assert int(node.query(f"SELECT count() FROM system.databases WHERE name = '{CATALOG_NAME}'").strip()) == 0
631+
assert int(node.query(f"SELECT count() FROM system.databases WHERE name = '{CATALOG_NAME}'").strip()) == 1
632+
assert int(node.query(f"SELECT count() FROM system.databases WHERE name = '{CATALOG_NAME}' SETTINGS show_data_lake_catalogs_in_system_tables = false").strip()) == 0
631633

632634
# system.columns
633635
assert int(node.query(f"SELECT count() FROM system.columns WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%' SETTINGS show_data_lake_catalogs_in_system_tables = true").strip()) == 24
634-
assert int(node.query(f"SELECT count() FROM system.columns WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%'").strip()) == 0
636+
assert int(node.query(f"SELECT count() FROM system.columns WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%'").strip()) == 24
637+
assert int(node.query(f"SELECT count() FROM system.columns WHERE database = '{CATALOG_NAME}' and table ilike '%{root_namespace}%' SETTINGS show_data_lake_catalogs_in_system_tables = false").strip()) == 0
635638

636639
# system.completions
637640
assert int(node.query(f"SELECT count() FROM system.completions WHERE startsWith(word, '{test_ref}') SETTINGS show_data_lake_catalogs_in_system_tables = true").strip()) != 0
638-
assert int(node.query(f"SELECT count() FROM system.completions WHERE startsWith(word, '{test_ref}')").strip()) == 0
641+
assert int(node.query(f"SELECT count() FROM system.completions WHERE startsWith(word, '{test_ref}')").strip()) != 0
642+
assert int(node.query(f"SELECT count() FROM system.completions WHERE startsWith(word, '{test_ref}') SETTINGS show_data_lake_catalogs_in_system_tables = false").strip()) == 0

0 commit comments

Comments
 (0)