Repository navigation
Stable 25.8 Backport of #94615 - Fix default expression evaluation when referencing other columns with defaults - #2796
Conversation
…ssion-dependency-evaluation Fix default expression evaluation when referencing other columns with defaults Conflicts committed as-is; the next commit resolves them: - src/Processors/Transforms/AddingDefaultsTransform.cpp (both modified)
Took the PR's dependency-ordered default evaluation; replaced upstream-only `removeSpecialRepresentations` with stable-25.8's `recursiveRemoveSparse`.
|
Backporter: cherry-pick conflicts resolved by AI Conflicted files:
Commits:
|
CI triage for
|
| Check | Classification | PR-caused? |
|---|---|---|
| Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, sequential) | Known flaky test 01079_parallel_alter_detach_table_zookeeper |
No |
| Stateless tests (amd_debug, sequential) | Infra: runner lost communication | No |
| Stateless tests (amd_asan, flaky check) | Infra: docker failed to start | No |
| GrypeScanKeeper / Grype Scan | Infra: posting the commit status failed. Scan found 0 high/critical | No |
| DCO | Commits have no Signed-off-by |
Process only |
1. Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, sequential): Failed: 1, Passed: 575
Failing test: 01079_parallel_alter_detach_table_zookeeper
Code: 159. DB::Exception: ReplicatedDatabase DDL task /test/clickhouse/db/test_ec45lgr7/log/query-0000000014 is not finished on 1 of 3 hosts ...
Was waiting for 120.601379744 seconds, which is longer than distributed_ddl_task_timeout. (TIMEOUT_EXCEEDED) ... (in query: DROP TABLE IF EXISTS concurrent_alter_detach_1)
- Not PR-caused. The failure is a DatabaseReplicated DDL timeout on a
DROP TABLEin a concurrent ALTER/DETACH stress test. It has nothing to do withAddingDefaultsTransform, which only runs when inserted rows have missing columns. - Upstream already has flaky-test reports for this test: Test 01079_parallel_alter_detach_table_zookeeper is flaky ClickHouse/ClickHouse#91413 and Flaky test: 01079_parallel_alter_detach_table_zookeeper ClickHouse/ClickHouse#97358.
- Next step: safe to re-run.
2. Stateless tests (amd_debug, sequential): no result produced
Check-run annotation:
The self-hosted runner lost communication with the server.
- The job died about 21 minutes into the
Runstep on a Hetzner runner, and no praktika report was uploaded. I therefore can't tell which test was running when it died. - Infra. Nothing indicates the PR is involved. Re-run. If it dies again on the same suite, that is worth a closer look (OOM on the runner, for example).
3. Stateless tests (amd_asan, flaky check): no result produced
Job for docker.service failed.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
##[error]Process completed with exit code 1.
- Infra. Docker failed during runner setup, so no tests ran. This also means the flaky check never actually ran
01060_defaults_all_columnsrepeatedly. Re-run to get that signal.
4. GrypeScanKeeper / Grype Scan
script: const totalHighCritical = '0';
RequestError [HttpError]: Unexpected end of JSON input
##[error]Unhandled error: HttpError: Unexpected end of JSON input
- The scan itself passed with 0 high/critical vulnerabilities. The job failed only when it tried to post the commit status back to GitHub (the API error above). Infra. Re-run.
5. DCO
- Neither commit on the branch has a
Signed-off-bytrailer:a95c356a0c(the upstream merge commit) and419a6ff140(conflict resolution). - This is about commit metadata, not the code. Other backport PRs usually treat it as non-blocking. If you want it green, the DCO app's "set DCO to pass" override is the non-destructive option. Re-signing the commits would need a force-push, which I won't do.
Health check of the change
- The backport ports the dependency-ordered default evaluation in
AddingDefaultsTransform::transform. - It moves
01060_defaults_all_columnsfrombugs/to0_stateless/, with the corrected expectation2 test2. I confirmedtests/queries/bugs/01060_*is gone and the.sqland.referencefiles are in0_stateless/. - The build and all non-sequential stateless/integration suites passed.
- Recommendation: re-run the three infra-failed jobs, especially the ASan flaky check, so the new test gets its repeated-run validation. No code changes are needed.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix default expression evaluation when referencing other columns with computed defaults. (ClickHouse#94615 by @alexey-milovidov)
Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: