Skip to content

Stable 25.8 Backport of #94615 - Fix default expression evaluation when referencing other columns with defaults - #2796

Merged
zvonand merged 2 commits into
stable-25.8from
backports/stable-25.8/94615
Nov 10, 2026
Merged

zvonand merged 2 commits into
stable-25.8from
backports/stable-25.8/94615

Conversation

@zvonand

@zvonand zvonand commented Nov 5, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

alexey-milovidov and others added 2 commits November 5, 2026 14:18
…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`.
@zvonand zvonand added 25.8 25.8 Altinity Stable backport Backport stable stable-25.8 labels Nov 5, 2026
@zvonand

zvonand commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

Backporter: cherry-pick conflicts resolved by AI

Conflicted files:

  • src/Processors/Transforms/AddingDefaultsTransform.cpp (both modified)

Commits:

  • a95c356: cherry-pick with the conflicts committed as-is

  • 419a6ff: resolution

  • src/Processors/Transforms/AddingDefaultsTransform.cpp: the first conflict was stable-25.8's single-pass evaluateMissingDefaults block against the PR's dependency-ordered loop; kept the PR's loop.

  • The second conflict was stable-25.8's recursiveRemoveSparse calls against the PR's new loop body; kept the PR's code.

  • Upstream's removeSpecialRepresentations doesn't exist on stable-25.8, so the two calls were changed back to recursiveRemoveSparse.

  • RequiredSourceColumnsVisitor / requiredColumns() exist on stable-25.8, so nothing else needed adapting.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Workflow [PR], commit [419a6ff]

@zvonand

zvonand commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

@blau-ai

@blau-ai

blau-ai commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

CI triage for 419a6ff

Summary: 5 red checks. None are caused by the code change. 1 is a known flaky test, 3 are CI/runner problems, and 1 (DCO) is a commit-metadata/process check.

The test this backport touches, 01060_defaults_all_columns, is not in the failure list of any stateless suite. The parallel stateless jobs, where it runs, are green.

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)

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 Run step 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_columns repeatedly. 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-by trailer: a95c356a0c (the upstream merge commit) and 419a6ff140 (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_columns from bugs/ to 0_stateless/, with the corrected expectation 2 test2. I confirmed tests/queries/bugs/01060_* is gone and the .sql and .reference files are in 0_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.

@zvonand zvonand added the verified Approved for release label Nov 10, 2026
@zvonand
zvonand merged commit b143441 into stable-25.8 Nov 10, 2026
234 of 241 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

25.8 25.8 Altinity Stable backport Backport stable stable-25.8 verified Approved for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants