Skip to content

Antalya 26.6 Backport of #109023 - Fix Inconsistent KeyCondition behavior for wider-typed key comparisons - #2470

Merged
mkmkme merged 3 commits into
antalya-26.6from
backports/antalya-26.6/109023
Oct 6, 2026
Merged

mkmkme merged 3 commits into
antalya-26.6from
backports/antalya-26.6/109023

Conversation

@mkmkme

@mkmkme mkmkme commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix Inconsistent KeyCondition behavior for wider-typed key comparisons (ClickHouse#109023 by @groeneai)

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)

…ndition-relaxed-exact-range

Fix Inconsistent KeyCondition behavior for wider-typed key comparisons
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [4661eec]

@mkmkme

mkmkme commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator Author

@blau-ai

@blau-ai

blau-ai commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

CI triage

Verdict: 4 failing checks — 0 PR-caused, 2 flaky, 2 image-CVE/infra. Nothing here points at this backport. The PR touches only src/Storages/MergeTree/KeyCondition.cpp (primary-key range analysis) plus its own new test 04493_key_condition_wide_type_exact_range, and that new test passed. Both failing stateless suites are marked do_not_block_pipeline_on_failure and both failing tests were auto-labeled flaky by CI. My recommendation is to re-run the two stateless suites and merge on green; the Grype findings are image/dependency CVEs that a source-only change can't fix.


1. Stateless tests (amd_binary, cas s3 storage, parallel) — flaky, not PR-caused

  • Failing test: 04780_json_subcolumn_index_match_not_quadratic (Failed: 1, Passed: 11116).
  • Decisive evidence — CI's own rerun diagnosis:

    Re-running with the same randomized settings… Runs: 7, Failed: 0, Passed: 7. All reruns passed. The failure is not reproducible (likely a transient issue).

  • It's a memory-threshold test ("allocated 21909744 bytes, more than 150% of the no-dots control"). This measures allocator behaviour for JSON subcolumn skip-index matching — nothing to do with KeyCondition wide-type comparisons. Thresholds like this are sensitive to allocator/jemalloc state under parallel load, hence the 7/7-clean rerun.
  • Next step: safe to re-run.

2. Stateless tests (amd_debug, distributed plan, s3 storage, parallel) — infra flake, not PR-caused

  • Failing test: 03752_attach_as_replicated_transaction_metadata (Failed: 1, Passed: 10846).
  • Decisive evidence:

    Runs: 14, Failed: 0, Passed: 14. All reruns passed. The failure is not reproducible (likely a transient issue).

  • Root error is a transient CAS-storage fault, not a logic bug:

    Code: 210 … CAS read of 'ca/cas/ref_catalog' -- mount fence tripped before the request; TRANSIENT unavailability, not damage. (NETWORK_ERROR) → Cannot ATTACH AS REPLICATED: failed to clear transaction metadata on disk (CANNOT_RESTORE_TABLE)

  • That's the Antalya CAS object-store layer briefly unavailable — unrelated to KeyCondition.
  • Next step: safe to re-run.

3 & 4. GrypeScanKeeper / GrypeScanServer (-alpine) — image CVEs, not PR-caused

  • Keeper image: "Completed with 4 high/critical vulnerabilities"; server alpine image: "1 high/critical".
  • Grype scans the built container images for CVEs in bundled OS/library packages. A change to KeyCondition.cpp cannot introduce or remove these, and they are present independent of this PR (same base images as other antalya-26.6 PRs). These are tracked/triaged at the image level, not in a source backport.
  • Next step: out of scope for this PR; no code action available here.

"PR" aggregate gate

  • Red only because it aggregates the checks above; no independent failure of its own.

Health check: This backport looks healthy. Its new regression test (04493_key_condition_wide_type_exact_range) passed, and the two suites that flagged otherwise passed 11,116 and 10,846 tests respectively with a single flaky/infra failure each that cleared on rerun. No fix is required on the PR — re-running the two stateless suites should bring them green.

@mkmkme
mkmkme merged commit 7c1a9d2 into antalya-26.6 Oct 6, 2026
307 of 316 checks passed
@mkmkme mkmkme added the verified Approved for release label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants