Skip to content

Update the polars 0.20 rows of 05474_parquet_corpus_writers - #128494

Merged
fm4v merged 1 commit into
ClickHouse:masterfrom
groeneai:parquet-corpus-polars-0-20-reference
Nov 1, 2026
Merged

fm4v merged 1 commit into
ClickHouse:masterfrom
groeneai:parquet-corpus-polars-0-20-reference

Conversation

@groeneai

@groeneai groeneai commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #128336
Related: #128302
Related: #128305

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 into CHANGELOG.md):

Fix the test 05474_parquet_corpus_writers on master after #128336.

Description

05474_parquet_corpus_writers has failed on master since #128336 was merged (master job). It now fails for every PR whose stateless job runs it. The diff is always the same 9 rows: the polars 0.20.31 WHERE u64 > 9223372036854775807 checks, where the reference expects INCORRECT_DATA and the result is ok.

#128336 makes the reader ignore inverted Parquet statistics, so these checks now return the count the writer itself reads back. The commit on that branch that updated the 9 rows (a87c586) was pushed after the PR was enqueued. The merge queue merged the head it had enqueued (808fe40 has parents 86ecd4b and 0b4da4c), so the reader change landed without the reference update. This PR re-lands that commit unchanged.

Validation, with the test's own run_checks.sh command line:

  • On a build of current master, the old reference differs in exactly these 9 rows, and the new one matches byte for byte.
  • On a master build from before Ignore inverted Parquet statistics instead of failing the query #128336, the old reference matches, and the new one fails on the same 9 rows.
  • Through clickhouse-test with random settings: 50/50 OK.
  • The other corpus tests (05359, 05473, 05475-05479) pass unchanged.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/128494]

Version info

  • Merged into: 26.11.1.1037-master (included in 26.11 and later)

ClickHouse#128336 ignores inverted Parquet statistics, so the 9 polars 0.20.31
`WHERE u64 > 9223372036854775807` checks that ClickHouse#128305 recorded as
`INCORRECT_DATA` now return the count the writer reads back. The merge
queue landed ClickHouse#128336 without its commit that updated these rows
(a87c586), so master fails this test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

groeneai commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (0 findings).
The change is the 9-row reference update from #128336 (commit a87c586), re-applied unchanged.

# Sev Finding Verdict Evidence / action
- - none - -

Severity: ❌ blocker / ⚠️ major / 💡 nit.

Session id: cron:clickhouse-review-slot-9:20261101-154200

@groeneai

groeneai commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. The test's own run_checks.sh command, run with a build of current master against the old reference, differs in the same 9 rows as CI, on every run.
b Root cause explained? #128336 makes the reader ignore inverted statistics, so the 9 polars 0.20.31 u64 > 2^63-1 checks now return ok. The merge queue merged the enqueue-time head (0b4da4c) without a87c586, the commit that updated these rows.
c Fix matches root cause? Yes. The stale expectation is what is wrong, and the engine behaviour is the reviewed one from #128336. The commit is re-landed unchanged.
d Test intent preserved / new tests added? Yes. The test now also guards #128302: the new reference fails on a build without #128336. The other 4 error rows (unrelated known issues) are untouched.
e Both directions demonstrated? Yes. Master build: the old reference differs in exactly the 9 rows, the new one is byte-equal. Pre-#128336 build: the old reference is byte-equal, the new one fails on the same 9 rows. Also checked through clickhouse-test, 50/50 OK with random settings.
f Fix is general across code paths? N/A (reference-only change). The other corpus tests (05359, 05473, 05475-05479) pass unchanged.
g Fix generalizes across inputs (params/datatypes/wrappers)? N/A (no engine change). All 9 affected polars 0.20.31 files are covered.
h Backward compatible? (maintainer-approved exception only) Yes. Test-only change.
i Invariants and contracts preserved? Yes. The reference equals the runner output, byte for byte, on a build that contains #128336.

Session id: cron:clickhouse-impl-slot-7:20261101-152500

@groeneai

groeneai commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

cc @fm4v, could you review this and add the can be tested label so CI runs? The merge queue landed #128336 at its enqueue-time head (0b4da4c), so the 05474 reference update pushed afterwards (a87c586) never reached master; this re-lands that commit unchanged and fixes the 9 polars 0.20 rows that now fail on master.

@clickhouse-gh

clickhouse-gh Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [e514655]

Summary: ✅


AI Review

Summary

Updates nine Polars 0.20.31 expectations in 05474_parquet_corpus_writers from INCORRECT_DATA to ok, matching the Parquet reader behavior merged in PR #128336. The checks still require exact counts of 26 or 133 rows. No actionable findings.

Missing context / blind spots
  • ⚠️ The PR's stateless report has no results yet, and no local clickhouse binary was available. Runtime evidence comes from the linked master failure and the author's reported validation; independent verification confirmed the expected counts against stored writer output.
Final Verdict

Status: ✅ Approve.

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-testing Test content only (no production code). labels Nov 1, 2026
@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Nov 1, 2026
@alexey-milovidov alexey-milovidov self-assigned this Nov 1, 2026
@alexey-milovidov alexey-milovidov added the blocker This issue / pr blocks a new release label Nov 1, 2026
@fm4v
fm4v added this pull request to the merge queue Nov 1, 2026
Merged via the queue into ClickHouse:master with commit ca92d3a Nov 1, 2026
354 of 355 checks passed
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 1, 2026
@fm4v fm4v self-assigned this Nov 2, 2026
@clickhouse-gh clickhouse-gh Bot added comp-parquet-reader-v3 Issues related to the native Parquet reader. and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker This issue / pr blocks a new release can be tested Allows running workflows for external contributors comp-parquet-reader-v3 Issues related to the native Parquet reader. pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants