Skip to content

Add some introspection for parquet and iceberg - #126013

Merged
alesapin merged 5 commits into
masterfrom
iceberg-read-profile-events
Oct 20, 2026
Merged

alesapin merged 5 commits into
masterfrom
iceberg-read-profile-events

Conversation

@alesapin

@alesapin alesapin commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

...


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

Version info

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

@clickhouse-gh

clickhouse-gh Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fc7dcda]

Summary: ✅


AI Review

Summary

Adds profile events for Parquet reading, decompression and pruning, object-storage metadata requests and reader waits, and Iceberg metadata loading and parsing. Reviewed revision fc7dcda9c7ba852be31d0063cf06dcd38e2d95b6; no actionable findings remain. The earlier iterator metadata-counting finding is addressed by the shared metadata helpers and the new explicit-key/brace-expansion regression test.

Missing context / blind spots
  • ⚠️ The current-head CI run is still in progress. The new S3 regression test is excluded from the fast test, and its execution result was not available during review. No local ClickHouse executable or build directory was available for additional runtime validation; the completed stateless job would close this gap.
Final Verdict

Status: ✅ Approve. No code changes requested; CI completion remains pending.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Oct 15, 2026
@arsenmuk arsenmuk self-assigned this Oct 15, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. label Oct 15, 2026

@arsenmuk arsenmuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked for double/under/mis-counting - lgtm with a minor comment above

alesapin and others added 4 commits October 16, 2026 12:13
…tchedForRead`

`KeysIterator` (explicit and brace-expanded keys) fetches the object metadata
before `createReader` sees the object, so these requests were not counted in
`ObjectStorageMetadataFetchedForRead` and `ObjectStorageMetadataFetchMicroseconds`.
The same applied to the archive iterators, the data lake iterators, Iceberg
position delete files, and schema inference.

Route all of them through the shared `getObjectMetadataForRead` and
`tryGetObjectMetadataForRead` helpers, and add a test that compares the
counter with `S3HeadObject` for explicit and brace-expanded keys.

Review comment: #126013 (comment)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…e-events

# Conflicts:
#	src/Common/ProfileEvents.cpp
#	src/Storages/ObjectStorage/DataLakes/Iceberg/Utils.cpp
…e-events

# Conflicts:
#	src/Processors/Formats/Impl/Parquet/Reader.cpp
@alesapin
alesapin added this pull request to the merge queue Oct 20, 2026
Merged via the queue into master with commit 880fd6b Oct 20, 2026
353 of 354 checks passed
@alesapin
alesapin deleted the iceberg-read-profile-events branch October 20, 2026 20:06
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 20, 2026
@clickhouse-gh clickhouse-gh Bot added comp-object-storage Object storage connectivity (S3/GCS/Azure) including credentials, retries, multipart, etc. and removed comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-object-storage Object storage connectivity (S3/GCS/Azure) including credentials, retries, multipart, etc. pr-not-for-changelog This PR should not be mentioned in the changelog 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.

3 participants