Repository navigation
Revert "Parallelize reads from a single Parquet file in StorageFile" - #104359
Conversation
|
Workflow [PR], commit [c09bbde] Summary: ✅ AI ReviewSummaryThis PR reverts single-file Parquet parallelism in PR Metadata
Suggested replacement text: ### Changelog category (leave one):
- CI Fix or Improvement
### Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not for changelog.
### Documentation entry for user-facing changes
- [ ] Documentation is written (mandatory for new features)Findings❌ Blockers
ClickHouse Rules
Final VerdictStatus: Minimum required actions:
|
| } | ||
|
|
||
| auto chunk = getChunkForCount(num_rows); | ||
| auto chunk = getChunkForCount(size_t(file_metadata.num_rows)); |
There was a problem hiding this comment.
This reintroduces a correctness issue for existing bucketed Parquet reads outside StorageFile: StorageObjectStorageSource still calls setBucketsToRead (see src/Storages/ObjectStorage/StorageObjectStorageSource.cpp, line 842), so in need_only_count mode each bucket source now reports the full file_metadata.num_rows.
For a single Parquet object split into N buckets, SELECT count() becomes approximately N times too large.
Could we keep the bucket-aware counting logic here (sum only buckets_to_read->row_group_ids) while reverting only the StorageFile single-file parallelization?
The AI review skill flagged revert PRs for not following `.github/PULL_REQUEST_TEMPLATE.md`, but revert PRs are allowed to omit `Changelog category`, `Changelog entry`, and the documentation checkbox - their body is typically just a `Reverts ...` link with a brief reason. The review skill now detects revert PRs (by `Revert "..."` title, `Reverts ClickHouse/ClickHouse#N`, or `This reverts commit <sha>`) and skips template metadata validation for them. Example of an incorrect finding fixed by this change: ClickHouse#104359 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
The correctness issue should be fixed independently, after the revert. |
|
This should prevent the regression: #104368 |
LLVM Coverage Report
Changed lines: 91.49% (43/47) | lost baseline coverage: 15 line(s) · Uncovered code |
Reverts #104251
After further testing it appears that short queries degrade.
Version info
26.5.1.461