Skip to content

Fix Bad get: has Null from skip index set. - #89429

Merged
github-merge-queue[bot] merged 1 commit into
masterfrom
fix-bad-get-in-set-index
Dec 17, 2025
Merged

github-merge-queue[bot] merged 1 commit into
masterfrom
fix-bad-get-in-set-index

Conversation

@KochetovNicolai

@KochetovNicolai KochetovNicolai commented Nov 3, 2025 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Fix Bad get error that happened during Set index analysis in case the predicate contained NULL constant. Fixes #84856 and #82974

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Details

Resolves #84856 and #82974

Version info

  • Merged into: 25.11.1.1034
  • Backported to: 25.11.3.53, 25.8.22.7

@clickhouse-gh

clickhouse-gh Bot commented Nov 3, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d859e53]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_binary, ParallelReplicas, s3 storage, parallel) failure
03707_set_index_bad_get_null_bug FAIL cidb
Integration tests (amd_binary, 4/5) failure
test_ytsaurus/test_tables.py::test_yt_simple_table_engine FAIL cidb
test_ytsaurus/test_tables.py::test_yt_simple_table_function FAIL cidb
test_ytsaurus/test_tables.py::test_ytsaurus_primitive_types[uint8] FAIL cidb
test_ytsaurus/test_tables.py::test_ytsaurus_primitive_types[uint16] FAIL cidb
test_ytsaurus/test_tables.py::test_ytsaurus_primitive_types[uint32] FAIL cidb
test_ytsaurus/test_tables.py::test_ytsaurus_primitive_types[uint64] FAIL cidb
test_ytsaurus/test_tables.py::test_ytsaurus_primitive_types[int8] FAIL cidb
test_ytsaurus/test_tables.py::test_ytsaurus_primitive_types[int16] FAIL cidb
test_ytsaurus/test_tables.py::test_ytsaurus_primitive_types[int32] FAIL cidb
test_ytsaurus/test_tables.py::test_ytsaurus_primitive_types[int64] FAIL cidb
32 more test cases not shown
Integration tests (arm_binary, distributed plan, 4/4) failure
test_storage_alias_replicated/test.py::test_alias_with_replicated FAIL cidb
Upgrade check (amd_asan) failure
Killed by signal (in clickhouse-server.log) FAIL cidb
Fatal message in clickhouse-server.log (see fatal_messages.txt) FAIL cidb
Killed by signal (output files) FAIL cidb
Found signal in gdb.log FAIL cidb

@KochetovNicolai KochetovNicolai added pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-cloud labels Nov 3, 2025
@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Nov 3, 2025
@shankar-iyer shankar-iyer self-assigned this Nov 4, 2025
@@ -0,0 +1,13 @@
drop table if exists test;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think needs SET parallel_replicas_local_plan = 1; for the failure in the Parallel_Replicas suite.

@github-merge-queue
github-merge-queue Bot merged commit d859e53 into master Dec 17, 2025
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 17, 2025
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Dec 17, 2025
@robot-clickhouse robot-clickhouse added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Dec 17, 2025
clickhouse-gh Bot added a commit that referenced this pull request Dec 17, 2025
Backport #89429 to 25.11: Fix `Bad get: has Null` from skip index set.
nikitamikhaylov added a commit that referenced this pull request Mar 31, 2026
Backport #89429 to 25.8: Fix `Bad get: has Null` from skip index set.
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Apr 17, 2026
The backport of PR ClickHouse#89429 to 25.8 (PR ClickHouse#92409) cherry-picked the test
reference from master, which uses the post-fix indentation for `Ranges:`
(6 spaces) produced by `ReadFromMergeTree::describeIndexes`.

However, 25.8 was branched before commit `ed65cfdd3fc` ("Fix indent for
Ranges output in EXPLAIN indexes=1", Sep 23 2025), so its C++ code still
emits `Ranges:` at the double indent (8 spaces) — consistent with the
reference in `01786_explain_merge_tree.reference` on 25.8.

Result: every `Stateless tests (amd_asan, distributed plan, parallel, 1/2)`
run on 25.8 failed after the backport merged, because actual output (8
spaces) did not match the reference (6 spaces). 23 consecutive master-
branch 25.8 runs and 27 backport-PR runs were affected since 2026-03-31.

This fixes the reference to match 25.8's C++ output (8 spaces), the
minimal fix consistent with the other 25.8 reference files that already
expect 8 spaces (e.g. `01786_explain_merge_tree.reference`).

Not a backport of Azat's `ed65cfdd3fc` because that would require
regenerating many reference files; the minimal fix is sufficient and
safer for a release branch.
@clickgapai

Copy link
Copy Markdown
Contributor

Hi @KochetovNicolai @github-merge-queue[bot] @shankar-iyer — while reviewing this PR I found the following:

Happy to discuss — close anything that's wrong or already addressed.

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

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DB::Exception: Bad get: has Null from skip index set

7 participants