Skip to content

Fix iceberg stats with partitioned table - #104329

Merged
scanhex12 merged 2 commits into
ClickHouse:masterfrom
scanhex12:iceberg_fix_stats
May 11, 2026
Merged

scanhex12 merged 2 commits into
ClickHouse:masterfrom
scanhex12:iceberg_fix_stats

Conversation

@scanhex12

@scanhex12 scanhex12 commented May 8, 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 into CHANGELOG.md):

Fix iceberg stats with partitioned table. This closes #104321

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.531

@clickhouse-gh

clickhouse-gh Bot commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ac8f597]

Summary: ❌

job_name test_name status info comment
Unit tests (asan_ubsan, function_prop_fuzzer) FAIL
FunctionsStress FAIL cidb
Finish Workflow FAIL
python3 ./ci/jobs/scripts/workflow_hooks/check_report_messages.py FAIL

AI Review

Summary

This PR fixes Iceberg manifest per-file statistics by passing actual per-file record_count and file_size_in_bytes from compaction/mutation writers into generateManifestFile, and adds coverage in both integration and stateless tests. I did not find remaining correctness, safety, or performance issues in the current code.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ✅
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label May 8, 2026
@clickhouse-gh clickhouse-gh Bot added the submodule changed At least one submodule changed in this PR. label May 11, 2026
@scanhex12
scanhex12 force-pushed the iceberg_fix_stats branch from d03ce0d to ac8f597 Compare May 11, 2026 11:11
@clickhouse-gh

clickhouse-gh Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.10% 84.10% +0.00%
Functions 91.10% 91.10% +0.00%
Branches 76.50% 76.50% +0.00%

Changed lines: 50.60% (42/83) · Uncovered code

Full report · Diff report

@scanhex12
scanhex12 enabled auto-merge May 11, 2026 19:31
@scanhex12
scanhex12 added this pull request to the merge queue May 11, 2026
Merged via the queue into ClickHouse:master with commit 0c3a0db May 11, 2026
162 of 165 checks passed
@scanhex12
scanhex12 deleted the iceberg_fix_stats branch May 11, 2026 19:47
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 11, 2026
@alesapin alesapin added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Aug 21, 2026
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Aug 21, 2026
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Iceberg writer reports incorrect record_count / file_size_in_bytes in manifest

6 participants