Repository navigation
Backport #109331 to 26.7: Enforce TABLE ENGINE grant in table functions - #117854
Merged
Merged
Conversation
Contributor
|
Workflow [BackportPR], commit [fa9de34] Summary: ❌
|
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Sep 17, 2026
Two conflicts in `convertColumnToType`, both because ClickHouse#117837 landed `resolveActiveAlternativeType` on master after this branch was cut. That change reads the active alternative's type back from a `Variant`/`Dynamic` column and passes it as the source type of the delegated `convertFieldToType`, so a `Variant` SOURCE is now faithful. This branch is the other direction, a `Variant` TARGET, and both are kept: the anonymous namespace now holds `resolveActiveAlternativeType` alongside `carriesAmbiguousVariant`, `variantAlternativeIsChosenByType` and `tryConvertVariantColumnNative`, and `convertColumnToTypeOrNull` runs the column-native `Variant` path before falling back to the `Field` path that resolves the alternative. The header's two paragraphs conflicted for the same reason: this branch still carried the pre-ClickHouse#117837 claim that a `Variant` source is unrecoverable, which is now false. Master's paragraph and its `Array(Dynamic)` composite limitation are kept, the stale claim is dropped, and the `Variant` target divergence stays. The rewrite in `LogicalExpressionOptimizerPass` merged cleanly on top of ClickHouse#117854, which renamed the `in` family the passes emit by `transform_null_in`; the merged sites keep that name lookup. Co-Authored-By: Claude Opus 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.
Original pull-request #109331
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.7.7.20