Skip to content

Backport #104416 to 26.3: Hide MySQL and PostgreSQL databases from system.tables by default - #106045

Merged
pamarcos merged 6 commits into
26.3from
backport/26.3/104416
Jun 1, 2026
Merged

pamarcos merged 6 commits into
26.3from
backport/26.3/104416

Conversation

@robot-ch-test-poll2

@robot-ch-test-poll2 robot-ch-test-poll2 commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #104416
Cherry-pick pull-request #106035

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.3.13.22

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label May 28, 2026
@clickhouse-gh

clickhouse-gh Bot commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [1e73462]

Summary: ✅

@pamarcos

Copy link
Copy Markdown
Member

@copilot Tackle the build failures. Also make sure only the new setting from the original PR is added to SettingsHistory

@CLAassistant

CLAassistant commented May 28, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ pamarcos
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI commented May 28, 2026

Copy link
Copy Markdown
Contributor

@copilot Tackle the build failures. Also make sure only the new setting from the original PR is added to SettingsHistory

Addressed in a7b453b.

  • Fixed the build break by switching InterpreterShowTablesQuery to DatabaseCatalog::isRemoteDatabase (the 26.3 API name).
  • Cleaned SettingsChangesHistory so only show_remote_databases_in_system_tables is added for this backport.

Copilot AI requested a review from pamarcos May 28, 2026 17:17
pamarcos added 4 commits May 29, 2026 19:44
The 26.3 backport should only add `show_remote_databases_in_system_tables` from PR #104416. Dropping the unrelated setting keeps `02995_new_settings_history` aligned with the branch.

PR: #106045
The PR makes `system.databases` list remote database names unconditionally because that is local metadata and does not enumerate remote tables. Keep `test_database_glue` aligned with master by expecting the data lake catalog database to remain visible when `show_data_lake_catalogs_in_system_tables` is false.

PR: #106045
The 26.3 stateless test runner does not provide `CLICKHOUSE_DATABASE_2`, while the original PR converted this coverage to SQL using two generated database names. Keep the same assertions in a shell test and derive both remote database names from `CLICKHOUSE_DATABASE`, which is available on 26.3.

PR: #106045
`check_cpp.sh` fails on the 26.3 backport branch because this blank line contains trailing spaces. Remove them so the branch passes style before pushing the BackportPR fix.

CI report:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106045&sha=a7b453b7045232485dd9b3aa7c8d5f942187d5e4&name_0=BackportPR
@pamarcos
pamarcos merged commit 13e4d0a into 26.3 Jun 1, 2026
34 checks passed
@pamarcos
pamarcos deleted the backport/26.3/104416 branch June 1, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants