Fix attempt to create table from table function#1701
Conversation
|
@codex review |
PR #1701 audit (Altinity/ClickHouse)AI audit note: This review was generated by AI (gpt-5.3-codex). PR: Fix attempt to create table from table function Confirmed defectsNo confirmed defects in reviewed scope. Coverage summary
Fault-category matrix (in-scope)
Call graph (anchor)
Code reference (change under review) if (!is_table_function
&& !columns_in_table_or_function_definition.empty()
&& !is_datalake_query
&& mode_ == LoadingStrictnessLevel::CREATE)
{
configuration->create(
object_storage,
context_,
columns_in_table_or_function_definition,
partition_by,
if_not_exists,
catalog,
table_id_
);
} |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Failed tests looks unrelated to current PR |
|
Please, do not write "Solved .." in changelog It belongs to PR body indeed -- just put it someplace else next time |
|
|
@zvonand stop merging prs before verification. I did not had a chance to look at it. |
Verification report: Altinity/ClickHouse PR #1701ConclusionPR is merged. CI on head was red but every failure is a pre-existing flake or known broken job; no PR-caused regression. No follow-up required. CI on head
|
| Check | Test FAIL | Class |
|---|---|---|
Integration tests (amd_asan, old analyzer, 4/6) |
test_replication_without_zookeeper::test_startup_without_zookeeper (×2) |
Pre-existing flake — 104 fails / 9 PRs / 90d, since 2026-03-30 |
Integration tests (amd_binary, 1/5) |
same | same |
Integration tests (arm_binary, distributed plan, 2/4) |
same | same |
Integration tests (amd_asan, old analyzer, 6/6) |
test_storage_s3_queue::test_persistent_processing |
New occurrence (1/1); s3_queue suite, no diff overlap |
Integration tests (amd_asan, flaky check) |
test_storage_iceberg::test_filesystem_cache[s3-1-5], [s3-4-5], [s3-5-5], test_metadata_cache[s3-4-5] |
Pre-existing flake — 2 fails / 2 PRs / 90d each. Caught by dedicated flaky-check job. |
Stateless tests (amd_binary, ParallelReplicas, s3 storage, parallel) |
03707_set_index_bad_get_null_bug |
Pre-existing flake — 17 / 10 |
Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, parallel) |
03212_variant_dynamic_cast_or_default |
Pre-existing flake — 11 / 8 |
Stress test (amd_debug) |
Server died + cascade (Killed by signal, Hung check, Fatal message, gdb signal) |
Pre-existing instability — 8 SIGABRT / 3 PRs / 30d, also on master (PR=0 commit 5c9d5236 2026-04-29 and 35573c93 2026-04-25) |
Unit tests (asan) |
IOTestAwsS3Client.AppendExtraSSE{C,KMS}HeadersRead/Write (4 unit tests) |
Pre-existing broken unit tests — 35 fails / 6 PRs / 90d each on antalya-25.8 base |
Regression workflow
| Check | Top failure | Baseline |
|---|---|---|
RegressionTestsRelease / Swarms / swarms |
swarms node-failure / network-failure scenarios | Known broken/flaky swarms suite |
Regression DB on /PRs/1701/ builds (30d): 19 Fail / 11,524 OK ≈ 0.16%. Failures concentrated in swarms (10) and s3_export_part (5) — both already known flaky/broken, not caused by this PR.
Related to PR #1701's diff?
PR is a 25.8 bugfix for CREATE TABLE … AS <table_function> rejecting/handling the remote-initiator + cluster-fallback path correctly (sibling to #1608/#1638's design issue #3.1 in AUDIT_PR_1608.md).
| Failing test | Diff overlap | Related? |
|---|---|---|
test_replication_without_zookeeper::test_startup_without_zookeeper |
none (replication startup) | No |
test_storage_iceberg::test_filesystem_cache / metadata_cache |
none (cache layer) | No |
test_storage_s3_queue::test_persistent_processing |
none | No |
03707_set_index_bad_get_null_bug |
none (set index NULL) | No |
03212_variant_dynamic_cast_or_default |
none (Variant cast) | No |
Stress test SIGABRT |
none — also crashes on master | No |
IOTestAwsS3Client.AppendExtraSSE* |
none (S3 SSE headers) | No |
Swarms regression |
none | No |
No failure intersects the TableFunctionObjectStorageClusterFallback / validateUseToCreateTable code path touched by this PR.
Code Audit: PR #1701 — Fix attempt to create table from table function
PR: Fix attempt to create table from table function Confirmed defectsNo confirmed defects in reviewed scope. |
Solved #1683
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix attempt to create table from table function
Documentation entry for user-facing changes
After rewrite query to object storage with using remote initiator ClickHouse tried to create table.
Call of
createrelies on fact of column definitions on start, but with remote initiator feature column definitions are added during query rewrite.CI/CD Options
Exclude tests:
Regression jobs to run: