Skip to content

Backport #115716 to 26.3: Report a clean error when a table expression has no columns to read - #119654

Merged
alexey-milovidov merged 2 commits into
26.3from
backport/26.3/115716
Sep 13, 2026
Merged

alexey-milovidov merged 2 commits into
26.3from
backport/26.3/115716

Conversation

@robot-clickhouse-ci-2

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #115716

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.3.33.67

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 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 12, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [01780aa]

Summary: ✅

The two tests #115716 added build their column-less table expression with
`ENGINE = Alias(...)`. On master `allow_experimental_alias_table_engine` is
`MAKE_OBSOLETE` and the guard is gone from `StorageAlias.cpp` altogether, so no
setting is needed there. On 26.3 the setting is still a live `Bool` defaulting to
`false` and `registerStorageAlias` throws at `LoadingStrictnessLevel::CREATE`:

    Code: 344. DB::Exception: Experimental Alias table engine is not enabled
    (turn on setting 'allow_experimental_alias_table_engine'). (SUPPORT_IS_DISABLED)

So both tests failed on their first `CREATE`, on the initial run and on the
retry, in `Stateless tests (amd_asan, distributed plan, parallel, 1/2)` and
`(2/2)`. Nothing else in those jobs failed.

Enabling the setting is what every other alias test on this branch already does
(`03636_storage_alias_basic.sql`, `03636_storage_alias_syntax.sql`,
`03802_storage_alias_referential_check.sql`,
`04055_storage_alias_bake_currentDatabase.sql`,
`03636_storage_alias_access_rights.sh`). The guard fires only on `CREATE`, so
the later sessions that grant on, select from and drop the aliases need nothing,
and neither test echoes its input, so the reference files are unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@alexey-milovidov
alexey-milovidov merged commit 67c160f into 26.3 Sep 13, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.3/115716 branch September 13, 2026 00:15
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.

5 participants