Skip to content

Revert "Allow a SETTINGS clause without ENGINE in CREATE/ATTACH DATABASE" - #121144

Closed
clickhouse-gh[bot] wants to merge 1 commit into
masterfrom
revert-118423
Closed

clickhouse-gh[bot] wants to merge 1 commit into
masterfrom
revert-118423

Conversation

@clickhouse-gh

@clickhouse-gh clickhouse-gh Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Reverts #118423

This pull request was reverted automatically by the Revert CI regressions job, which found that it
introduced a failure that keeps happening on master, and merged this revert without waiting
for checks so that master is usable again.

Failure: test 05227_storage_settings_unknown_name in Stateless tests (amd_debug, parallel), Stateless tests (amd_release, parallel, 1/2), Stateless tests (amd_tsan, s3 storage, parallel, 3/3)

Seen 16 times on 2 master commits in the last
24 hours, between 2026-09-20 05:31:34 and 2026-09-20 06:47:51 UTC.

Most recent report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=db3f74fd8a064d71328979271a9ad49b38a60036&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_release%2C%20parallel%2C%201%2F2%29&name_1=Stateless%20tests%20%28amd_release%2C%20parallel%2C%201%2F2%29

Why this pull request:

The test was clean on direct master runs until merge commit 1ed111c3867ce8cb7ae561eaa9d12944b60ee0d3, then started failing at 0cc1c6303cca67187040180a168b9937e3897487 (Merge pull request #118423) and kept failing on the next unrelated merge db3f74fd8a064d71328979271a9ad49b38a60036. PR #118423 changes InterpreterSetQuery::applySettingsFromQuery so SETTINGS name = DEFAULT entries in mixed CREATE clauses are hoisted out of default_settings when the name is a query setting. On CREATE TABLE ... SETTINGS disk = 'default', max_threads = DEFAULT and after SET custom_x = 1, that now strips max_threads = DEFAULT and custom_x = DEFAULT from the table AST, so SHOW CREATE TABLE no longer prints them. That exactly matches the CI diff in 05227_storage_settings_unknown_name, and the failure is still present on the newest checked-out master commit.

A draft pull request reintroducing the change is opened right after this one is merged, so the change
can come back through normal CI once the failure is fixed. Every investigation this job makes,
including the ones that revert nothing, is recorded in the checks_investigated table of the CI
database.

If this revert is wrong, say so here and bring the change back: the job errs towards reverting
because a broken master blocks everybody, not because its judgement beats yours.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):


Workflow [PR]
Sync PR [sync-upstream/pr/121144]

…tabase"

This reverts commit 0cc1c63, reversing
changes made to 1ed111c.
@clickhouse-gh

clickhouse-gh Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Workflow [PR], commit [6f900c3]

Summary: ✅

@clickhouse-gh

clickhouse-gh Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

📊 Cloud Performance Report

⚠️ AI verdict: not_sure — no significant changes across 37 queries analysed

This is a revert of CREATE/ATTACH DATABASE SETTINGS-without-ENGINE support: it only changes DDL parsing, the DatabaseFactory settings-dispatch path, and related docs/tests. TPC-H Q1 is a scan-and-aggregate SELECT that executes none of that code, so the flagged +24.0% cannot be attributed to this PR. The query's baseline is also intrinsically flaky (its history shows repeated shifts, and both source and base measurements were highly variable), which explains the swing, so it was downgraded to not_sure. No real per-query performance impact is expected from this change.

clickbench

🟢 No significant changes

tpch_adapted_1_official

⚠️ 1 inconclusive

Flagged queries (1 of 22)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 1 not_sure 50 62 +24.0% <0.0001 This PR only reverts CREATE/ATTACH DATABASE SETTINGS parsing and settings-dispatch plumbing; TPC-H Q1 is a pure scan/aggregation SELECT that never touches this code, so the +24.0% is run-to-run variance.

Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on.

Debug info
  • StressHouse run: 6d8a234a-3405-4204-9958-c840517394f0
  • MIRAI run: d74c7c7f-0118-4368-84d1-f8e22d62abf8
  • PR check IDs:
    • clickbench_1022555_1789907310
    • clickbench_1022562_1789907310
    • clickbench_1022573_1789907310
    • tpch_adapted_1_official_1022583_1789907310
    • tpch_adapted_1_official_1022611_1789907310
    • tpch_adapted_1_official_1022625_1789907310

@Algunenano

Copy link
Copy Markdown
Member

It was fixed in other PRs

@Algunenano Algunenano closed this Sep 25, 2026
auto-merge was automatically disabled September 25, 2026 14:54

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants