Repository navigation
Forbid using Dynamic type in JOIN keys - #86358
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [85dd708] Summary: ❌
|
novikd
reviewed
Sep 1, 2025
Member
Author
|
Stateless tests (amd_binary, ParallelReplicas, s3 storage, parallel) - #87653 |
1 task done
arsenmuk
pushed a commit
to melvynator/ClickHouse
that referenced
this pull request
Oct 21, 2026
The fuzzer profile enables `allow_dynamic_type_in_join_keys`, and the oracle context copied it. With it on, the TLP `WHERE p` arm turns a `Dynamic = UInt256` equality into a hash-join key compared after a cast to `Dynamic`, where a `UInt64` variant never equals a `UInt256` one, while the reference and the `not(p)` / `isNull(p)` arms keep a cross join with an `equals` filter. The forms then legitimately disagree (the limitation documented by ClickHouse#86358) and the oracle reported a false mismatch on `AST fuzzer (amd_release, oracle)`. Pin the setting off in `makeOracleContext`, next to the other settings that make rewrite forms disagree by design. It also overrides a session `compatibility <= 25.9`, which turns the setting on. The fuzzed query itself keeps the setting, so crash fuzzing of Dynamic join keys stays. Co-Authored-By: Claude Opus 5.5 <[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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Forbid using Dynamic type in JOIN keys. It could lead to unexpected results when Dynamic type is compared to a non-Dynamic type. It's better to cast Dynamic column to the required type.
Documentation entry for user-facing changes