Skip to content

Cherry pick #128607 to 26.10: Initialize parquet reader a bit earlier - #128959

Merged
PedroTadim merged 5 commits into
backport/26.10/128607from
cherrypick/26.10/128607
Nov 4, 2026
Merged

PedroTadim merged 5 commits into
backport/26.10/128607from
cherrypick/26.10/128607

Conversation

@robot-ch-test-poll4

Copy link
Copy Markdown
Contributor

Original pull-request #128607

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Before you resolve anything

Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

scanhex12 and others added 4 commits November 2, 2026 11:05
…f a source

Address the review of the previous commit:

- `ObjectStorageQueueSource` also calls `StorageObjectStorageSource::createReader`,
  before it registers the file. Initializing the format there moved a footer error
  out of its per-file error handling. Now `createReader` initializes the format in
  advance only when asked, and only `createReaderAsync` of `StorageObjectStorageSource`
  asks, so the queue and the first file of a source stay lazy.
- Initializing the reader in advance also started reading and decoding the column
  chunks, so a source had two readers, each entitled to the whole memory allowance
  of a stream. Now `prefetch` only reads the footer (`readFileFooterIfNeeded`), and
  the reader is initialized on the first `read`.

#128607

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…icas

With parallel replicas `s3` is rewritten to `s3Cluster`, and the Parquet
metadata cache hits are counted by secondary queries, which run in the
`default` database. Sum `ParquetMetadataCacheHits` over `initial_query_id`.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=128607&sha=ecd7c592358da0b17407b87655b03e625da673d9&name_0=PR
PR: #128607

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-reader-creation

Initialize parquet reader a bit earlier
@robot-ch-test-poll4 robot-ch-test-poll4 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request labels Nov 3, 2026
…6.10-128607

# Conflicts:
#	src/Processors/Formats/Impl/ParquetV3BlockInputFormat.cpp
#	src/Storages/ObjectStorage/StorageObjectStorageSource.cpp
#	src/Storages/ObjectStorage/StorageObjectStorageSource.h
@PedroTadim
PedroTadim merged commit ed9b2e5 into backport/26.10/128607 Nov 4, 2026
1 check passed
@PedroTadim
PedroTadim deleted the cherrypick/26.10/128607 branch November 4, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants