Repository navigation
Add test for #103508 - #104548
Merged
Merged
Add test for #103508#104548
Conversation
Closes #103508.
Contributor
|
Workflow [PR], commit [d1e9c7e] Summary: ✅ AI ReviewSummaryThis PR adds a stateless regression test for Final Verdict
|
…andom settings The originally reported `NOT_FOUND_COLUMN_IN_BLOCK` in #103508 reproduces with default settings on older builds and is fixed on master. However, the analyzer still renames `__table1.timestamp` to `__table1.timestamp_0` when `optimize_read_in_order = 0`, which random-settings runs in CI hit: Code: 10. DB::Exception: Not found column __table1.timestamp in block. There are only columns: __table1.timestamp_0, __global_row_index. That is a separate, narrower path through the analyzer than the one covered by this regression test. Pin the offending setting to `1` in the query so the test reliably exercises the originally reported scenario. CI report: #104548 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The single-shard `test_shard_localhost` does not exercise the remote read path that the original `#103508` report observed. Add a second query against `test_cluster_two_shards_localhost` (two shards on `localhost:9000`) so the regression also covers the case where the `Distributed` query fans out to multiple shards and merges the results on the initiator. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alexbakharew
added a commit
that referenced
this pull request
May 12, 2026
Add a regression test for `NOT_FOUND_COLUMN_IN_BLOCK` from #103508 (column `timestamp` renamed to `timestamp_0` in distributed CTE when underlying table is non-empty). The bug no longer reproduces on master. The analyzer still renames `__table1.timestamp` to `__table1.timestamp_0` when `optimize_read_in_order = 0`, which random-settings runs in CI hit: Code: 10. DB::Exception: Not found column __table1.timestamp in block. There are only columns: __table1.timestamp_0, __global_row_index. That is a separate, narrower path through the analyzer than the one covered by this regression test. Pin the offending setting to `1` in the query so the test reliably exercises the originally reported scenario. Also cover a multi-shard cluster: the single-shard `test_shard_localhost` does not exercise the remote read path that the original report observed. A second query against `test_cluster_two_shards_localhost` (two shards on `localhost:9000`) covers the case where the `Distributed` query fans out to multiple shards and merges the results on the initiator. Closes #103508. Squashed from #104548 (commits 8c80956, 70a1ed2, d1e9c7e). Co-Authored-By: Alexey Milovidov <[email protected]> Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alexbakharew
added a commit
that referenced
this pull request
May 13, 2026
…ts-only PRs The previous trigger required *every* changed path to be a test file, but a PR that adds a test alongside CI script / config / doc edits (a common shape for "add regression test" or "fix CI" PRs) leaves the production ClickHouse binary identical to the master baseline just the same — only the set of tests running against that binary differs. Replace `_only_tests_changed` (all paths are tests) with `_binary_unchanged AND _tests_changed`, where `_binary_unchanged` is true iff no path is production C/C++ source (i.e. `.cpp` / `.h` / … outside `tests/`, `src/**/tests/`, and `contrib/`). This admits the common mixed PR while still skipping PRs that touch real C++ sources (where the per-file diff coverage report is the appropriate signal). Observed on #104548 alongside ci/jobs/llvm_coverage_job.py changes: the analysis was skipped because the PR was no longer "tests-only" after the script edits, even though the binary was unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a regression test for
NOT_FOUND_COLUMN_IN_BLOCKfrom #103508 (columntimestamprenamed totimestamp_0in distributed CTE when underlying table is non-empty). The bug no longer reproduces on master.Closes #103508.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Version info
26.5.1.566