Repository navigation
Conversation
This was referenced Nov 13, 2026
Contributor
|
Workflow [PR], commit [414a62e] Summary: ❌
AI ReviewSummaryThe PR prevents Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; runtime validation remains subject to the CI limitation above. |
Contributor
Author
|
The arm_tidy build failure is in gtest_s3_object_storage_explicit_settings.cpp, which this PR doesn't touch, and other PRs fail the same way. The new_tests_check failure follows from it, since the bugfix validation jobs were dropped. |
This branch has not been deployed
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.
Closes: #130889
conversionPreservesOrderreturnedtrueas soon asfrom.equals(to), butDataTypeNumber::equalsonly compares the type id, soUInt8andBoollook the same to it. AfterNullableorLowCardinalityis unwrapped,UInt8toNullable(Bool)reaches that check as(UInt8, Bool)and passes, while the real cast maps every non-zero value totrue. So a shard-finalizedDISTINCT,GROUP BYorLIMIT BYover such aDistributedorMergetable returned duplicatetruerows instead of being refused. Now the shortcut does not accept aBooltarget unless the source isBooltoo, the same way theEnumbranch already excludesBool. It also looks throughNullable, becauseNullable(UInt8)equalsNullable(Bool)as well, whichLowCardinality(Nullable(Bool))over aNullable(UInt8)column reaches. As the issue notes, a plainBool(orNullable(Bool)overNullable(UInt8)) declared this way is refused too now, which errs on the safe side.The new test lines fail on the current master build (the queries return
truefour times each). I did not build the patched server locally.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix duplicate
truerows fromDISTINCT,GROUP BYorLIMIT BYover aDistributedorMergetable that declares aNullable(Bool),LowCardinality(Bool)orArray(Nullable(Bool))column over aUInt8column (orLowCardinality(Nullable(Bool))overNullable(UInt8)). Such queries are now refused withINCOMPATIBLE_COLUMNS.Workflow [PR]
Sync PR [sync-upstream/pr/131028]