Skip to content

Antalya 26.6 - Backport of 115686 - Parquet: size the initial footer read to 1% of the file within [128 KiB...2 MiB] - #2503

Merged
arthurpassos merged 1 commit into
antalya-26.6from
backport/antalya-26.6/115686
Oct 8, 2026
Merged

arthurpassos merged 1 commit into
antalya-26.6from
backport/antalya-26.6/115686

Conversation

@arthurpassos

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Performance Improvement

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

Backport of 115686

64 KIB cap is not enough for wide parquet files (hundreds of columns).
S3 have high TTFB penalty, between 30-40ms and in some cases up to 100ms. (if bad backend)
But, there is very small latency difference, if you read between 128KiB and 2MiB slice of object.
So, it's better if we be more optimistic with estimating footer size.

Table 1 — Footer (metadata_size) distribution, (301-col, 58 files, ~68 MiB each)

┌───────────────────────────────────┬─────────┬──────────┐
│              metric               │  bytes  │    ≈     │
├───────────────────────────────────┼─────────┼──────────┤
│ min                               │  42,989 │ 42 KiB   │
├───────────────────────────────────┼─────────┼──────────┤
│ avg                               │  78,928 │ 77 KiB   │
├───────────────────────────────────┼─────────┼──────────┤
│ p50 / p95 / max                   │  81,590 │ 79.7 KiB │
├───────────────────────────────────┼─────────┼──────────┤
│ files > 64 KiB (old floor missed) │ 54 / 58 │ 93%      │
├───────────────────────────────────┼─────────┼──────────┤
│ files > 128 KiB (new floor)       │  0 / 58 │ 0%       │
├───────────────────────────────────┼─────────┼──────────┤
│ files > 2 MiB (cap)               │  0 / 58 │ 0%       │
└───────────────────────────────────┴─────────┴──────────┘

Table 2 — Tail Range GET, WARM (440 reqs, 58 files ×7.6 hits, same-region us-east-1)

┌────────────────┬──────────┬──────────┬───────────┬──────────┬───────────┐
│      tail      │ TTFB p50 │ TTFB p95 │ total p50 │ xfer p50 │ speed p50 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│         64 KiB │       45 │      121 │        47 │        2 │   1 MiB/s │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│ 81590 (footer) │       41 │      133 │        44 │        2 │         1 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│         100003 │       41 │      125 │        44 │        2 │         2 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│        128 KiB │       49 │      160 │        52 │        3 │         2 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│        256 KiB │       42 │      140 │        45 │        4 │         5 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│         300007 │       43 │      118 │        48 │        4 │         5 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│        512 KiB │       42 │      153 │        48 │        5 │         9 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│         700001 │       41 │      150 │        47 │        7 │        12 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│          1 MiB │       41 │      139 │        47 │        6 │        18 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│        1500001 │       41 │      131 │        50 │        9 │        24 │
├────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┤
│          2 MiB │       43 │      136 │        55 │       11 │        31 │
└────────────────┴──────────┴──────────┴───────────┴──────────┴───────────┘

Changelog category (leave one):

  • Performance Improvement

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

More optimistic Parquet footer-size estimate instead of fixed 64 KiB, fetching the footer in one read instead of two and reducing footer-read latency.


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

Version info

  • Merged into: 26.10.1.1035-master (included in 26.10 and later)

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T18:10:52.936973Z 7012666 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Workflow [PR], commit [7012666]

@arthurpassos arthurpassos changed the title backport Antalya 26.6 - Backport of 11568 - Parquet: size the initial footer read to 1% of the file within [128 KiB...2 MiB] Oct 8, 2026
@arthurpassos
arthurpassos merged commit 8c18d72 into antalya-26.6 Oct 8, 2026
307 of 316 checks passed
@svb-alt svb-alt changed the title Antalya 26.6 - Backport of 11568 - Parquet: size the initial footer read to 1% of the file within [128 KiB...2 MiB] Antalya 26.6 - Backport of 115686 - Parquet: size the initial footer read to 1% of the file within [128 KiB...2 MiB] Oct 8, 2026
@arthurpassos arthurpassos added the verified Approved for release label Oct 8, 2026
@zvonand

zvonand commented Oct 8, 2026

Copy link
Copy Markdown
Member

@arthurpassos "Backport of ClickHouse#115686" is NOT a valid changelog entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants