Repository navigation
Fix exception in DistanceTransposedPartialReadsPass with NULL arguments - #96431
Merged
alexey-milovidov merged 2 commits intoFeb 10, 2026
Merged
Conversation
…ents The pass threw a logical error when `L2DistanceTransposed` or `cosineDistanceTransposed` had NULL arguments causing the result type to be `Nullable(Nothing)`. After rewriting and re-resolving the function, the result type changed to `Float64`, triggering the assertion. Skip the optimization when the result type is `onlyNull` — there is no benefit to optimizing a function that always returns NULL. Found by AST fuzzer (amd_ubsan): https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=6d880459c77dd2082259ce909163c64f8cce6f22&name_0=MasterCI&name_1=AST%20fuzzer%20%28amd_ubsan%29 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
|
Workflow [PR], commit [b7e10e1] Summary: ⏳
|
rienath
approved these changes
Feb 9, 2026
rienath
left a comment
Member
There was a problem hiding this comment.
Small change to the test. Otherwise, looks good
…ble_nothing.sql Co-authored-by: Raufs Dunamalijevs <[email protected]>
alexey-milovidov
deleted the
fix-distance-transposed-pass-nullable-nothing
branch
February 10, 2026 10:11
1 task done
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.
The pass threw a logical error when
L2DistanceTransposedorcosineDistanceTransposedhad NULL arguments causing the result type to beNullable(Nothing). After rewriting and re-resolving the function, the result type changed toFloat64, triggering the assertion.Skip the optimization when the result type is
onlyNull— there is no benefit to optimizing a function that always returns NULL.Found by AST fuzzer (amd_ubsan):
https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=6d880459c77dd2082259ce909163c64f8cce6f22&name_0=MasterCI&name_1=AST%20fuzzer%20%28amd_ubsan%29
Changelog category (leave one):
Version info
26.2.1.509