Repository navigation
Conversation
…able function
05141 leaves `function_src_no_password (id UInt64) AS url('http://127.0.0.1:1/', 'CSV')` in the shared
stress database, and an interrupted 02703 leaks `ON test_1.* USING 1`. Analyzing a table created as a
table function runs the function, here a schema inference from a closed port, so both probes failed with
Code 636 after 10 HTTP tries (33 s each) and the check reported a FAIL row. The code of such a failure
depends on the function and the source, so leave the table out by its kind, like a parameterized view.
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=122397&sha=caab4a3f2841a606f449abcbcff809ffb6aa5161&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding) plus my own cold review (0 findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261023-033600 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261023-031100 |
|
cc @yakov-olkhovskiy, could you review this and add the |
|
Workflow [PR], commit [f847074] Summary: ✅ AI ReviewSummaryPR #127543 excludes tables with engine Missing context / blind spots
Final VerdictStatus: ✅ Approve |
Related: #126895
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Upgrade check (amd_release)gave a falseCannot check whether the row policies can be appliedFAIL row on #122397 (report):Code: 636 ... The table structure cannot be extracted from a CSV format file: ... Connection refusedontest_1.function_src_no_password, with the filter1and without it.Root cause.
05141_create_as_external_engine_requires_select.shleavesfunction_src_no_password (id UInt64) AS url('http://127.0.0.1:1/', 'CSV')in the stress database, and an interrupted02703_row_policy_for_database.shleavesON test_1.* USING 1over it. Analyzing a query over a table created AS a table function (engineProxy) runs the function, andurl()infers the schema from the source again: 10 HTTP tries, then 636, 33 s per check. 636 is neither an analysis error nor one of the table-side codes of #126895, so the policy was kept with a FAIL row.Change. Tables with engine
Proxyare not checked, like parameterized views. The error of such a table depends on the function and its source (636 here, 198 for an unknown host, 400 for a missing file), so the rule is keyed on the kind, not on a code.A filter that only such a table rejects (a
remote()one without the column) now keeps the policy instead of dropping it; reads of that table fail the same way before and after the upgrade.Validation. Locally on 26.9.25.15 (the previous release of the check): with
USING 1, a column filter or a table-level policy on the table, and with a dangling Iceberg table checked first (the CI shape), the FAIL row after 33-66 s before the change, none in under 1 s after. A broken filter next to such a table is still dropped. The cases of #126169 and #126895 give identical results (32 dropped and 20 kept for #126169's).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/127543]