Skip to content

Backport #109331 to 26.7: Enforce TABLE ENGINE grant in table functions - #117854

Merged
antonio2368 merged 1 commit into
26.7from
backport/26.7/109331
Sep 4, 2026
Merged

antonio2368 merged 1 commit into
26.7from
backport/26.7/109331

Conversation

@robot-clickhouse-ci-1

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Merged into: 26.7.7.20

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Sep 3, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [fa9de34]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_asan_ubsan, distributed plan, parallel) FAIL
Server died FAIL cidb
Logical error '!part.empty()' (STID: 2508-47d5) FAIL cidb

@antonio2368
antonio2368 merged commit c61d746 into 26.7 Sep 4, 2026
37 of 40 checks passed
@antonio2368
antonio2368 deleted the backport/26.7/109331 branch September 4, 2026 06:46
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants