Skip to content

Stable 25.3 Backport of #123431 - Fix analyzer setting in views over Distributed - #2648

Merged
mkmkme merged 1 commit into
releases/25.3.14from
backports/stable-25.3/123431
Oct 24, 2026
Merged

mkmkme merged 1 commit into
releases/25.3.14from
backports/stable-25.3/123431

Conversation

@mkmkme

@mkmkme mkmkme commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC)

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

Fix a possible crash when querying the view over Distributed with enable_analyzer=0 (ClickHouse#123431 by @mkmkme)

Documentation entry for user-facing changes

…stributed-26.8

26.8: Fix analyzer setting in views over `Distributed`
@mkmkme mkmkme changed the title Stable 25.3 Backport of #123431 - 26.8: Fix analyzer setting in views over Distributed Stable 25.3 Backport of #123431 - Fix analyzer setting in views over Distributed Oct 23, 2026
@mkmkme

mkmkme commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@blau-ai

@blau-ai

blau-ai commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

CI triage — 4 failing checks, 0 PR-caused (all infra / timeout / pre-existing)

Head: eecc352c6294a0e0fc1a31a4ae6176ee482212c3. Every build is green (20/20 artifact groups), all functional stateless suites pass — including this PR's new test 05315_view_analyzer_setting_over_distributed — and the vast majority of integration and regression suites are green. The four red checks are explained below; none is attributable to this diff.

Why the diff is low-risk for all four: the change lives entirely in InterpreterSelectQuery::initSettings (the old, non-analyzer interpreter) and only fires when a query carries an explicit SETTINGS clause and the analyzer is on — and even then it only ever disables the analyzer. It never enables the analyzer and never runs on the analyzer code path.

1. Integration tests (tsan) [7/8] — not PR-caused (pre-existing / flaky)

Single failure: test_storage_kafka/test_batch_slow.py::test_kafka_unavailable[generate_old_create_table_query-True] (397 passed, 1 failed).

Code: 620. DB::Exception: Cannot read from StorageKafka with attached materialized views.
  StorageKafka.cpp:128: DB::ReadFromStorageKafka::makePipe()
  ...
  InterpreterSelectQueryAnalyzer.cpp:242: DB::InterpreterSelectQueryAnalyzer::execute()

The failing query is a plain SELECT * FROM test.test_bad_reschedule (no SETTINGS clause) executed through the analyzer interpreter. The PR's code only runs in the old interpreter and only for queries with a SETTINGS clause, so it is not on this execution path at all. This is a known Kafka direct-read-vs-analyzer behavior / timing-sensitive test, unrelated to the backport. Suggested next step: re-run the suite.

2. RegressionTestsRelease / LDAP (authentication) — not PR-caused (infra)

Runner died mid-suite (job ran only 25m, no report uploaded):

The self-hosted runner lost communication with the server. Verify the machine is running and has a healthy network connection.

The same suite passed on aarch64 (8 features ok). A LDAP-auth regression that hits only x86 from an analyzer/Distributed change is implausible. Suggested next step: re-run (RegressionTestsRelease / LDAP (authentication)).

3 & 4. RegressionTests {Aarch64, Release} / Common (lightweight_delete) — not PR-caused (timeout)

Both architectures failed identically after ~3h35m with:

The job has exceeded the maximum execution time of 3h30m0s

No test-assertion failure and no summary report — the large lightweight_delete suite simply hit the 3h30m job cap (a recurring pattern for this suite). A one-line initSettings change does not add hours of runtime, and it is unrelated to lightweight deletes. Suggested next step: re-run; if it keeps timing out, that's a suite-duration/runner-capacity issue to raise with CI owners, independent of this PR.

Verdict

  • PR-related failures: none.
  • Infra: LDAP (authentication) release (runner lost); lightweight_delete ×2 (3h30m timeout).
  • Pre-existing / flaky: Kafka test_kafka_unavailable (analyzer path, off this PR's code path).

Recommend simply re-running the four checks. The actual change is clean and fully validated by the green builds + stateless tests (incl. the new regression test).

🤖 Generated with Claude Code

@mkmkme
mkmkme merged commit b795d0c into releases/25.3.14 Oct 24, 2026
683 of 689 checks passed
@mkmkme mkmkme added the verified Approved for release label Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants