Skip to content

Improve glue catalog cache - #127043

Merged
scanhex12 merged 2 commits into
masterfrom
fix-glue-catalog-metadata-objects-cache
Oct 21, 2026
Merged

scanhex12 merged 2 commits into
masterfrom
fix-glue-catalog-metadata-objects-cache

Conversation

@scanhex12

@scanhex12 scanhex12 commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

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

Improve glue catalog cache. Let's cache only mapping column name -> timestamp, not the whole metadata


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

Version info

  • Merged into: 26.11.1.429-master (included in 26.11 and later)
  • Backported to: 26.10.2.62, 26.9.24.13, 26.8.34.4, 26.3.61.22

@clickhouse-gh

clickhouse-gh Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [4c2e8d8]

Summary: ✅


AI Review

Summary

The PR reduces Glue catalog memory retention by caching current-schema column type strings instead of complete Iceberg metadata documents, uses byte-weighted eviction, and adds a regression test. No actionable correctness, concurrency, or compatibility findings were identified.

Missing context / blind spots
  • ⚠️ Runtime validation remains pending: the CI report for the reviewed head still lists the integration and unit test jobs as pending. A successful run of test_timestamp_types_cache_does_not_keep_metadata and the existing Glue timestamp tests would close this gap. No local build or tests were run.
Final Verdict

Status: ✅ Approve for the reviewed code; runtime validation is subject to the pending CI results.

@scanhex12 scanhex12 added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Oct 20, 2026
@clickhouse-gh clickhouse-gh Bot added pr-improvement Pull request with some product improvements comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. labels Oct 20, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 4c2e8d858 with master 3f1c2fc7b (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Object file sizes

4 object files changed (+36.39 KiB total), 0 added.

Object file Master PR Δ
src/CMakeFiles/dbms.dir/Databases/DataLake/GlueCatalog.cpp.o 905.24 KiB 940.91 KiB +35.67 KiB (+3.94%)

719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.

Compile time of recompiled translation units

9 translation units recompiled, 37 s compile time in total, 9 of them have a recent master baseline.

Job report

@SmitaRKulkarni SmitaRKulkarni self-assigned this Oct 21, 2026

@SmitaRKulkarni SmitaRKulkarni 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.

LGTM

@scanhex12
scanhex12 enabled auto-merge October 21, 2026 12:39
@scanhex12
scanhex12 added this pull request to the merge queue Oct 21, 2026
Merged via the queue into master with commit c0095b1 Oct 21, 2026
179 checks passed
@scanhex12
scanhex12 deleted the fix-glue-catalog-metadata-objects-cache branch October 21, 2026 15:11
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 21, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Oct 21, 2026
clickhouse-gh Bot added a commit that referenced this pull request Oct 21, 2026
Backport #127043 to 26.9: Improve glue catalog cache
clickhouse-gh Bot added a commit that referenced this pull request Oct 21, 2026
Backport #127043 to 26.10: Improve glue catalog cache
clickhouse-gh Bot added a commit that referenced this pull request Oct 21, 2026
Backport #127043 to 26.8: Improve glue catalog cache
clickhouse-gh Bot added a commit that referenced this pull request Oct 21, 2026
Backport #127043 to 26.7: Improve glue catalog cache
strtgbb pushed a commit to Altinity/ClickHouse that referenced this pull request Oct 22, 2026
PedroTadim added a commit that referenced this pull request Oct 30, 2026
Cherry pick #127043 to 26.3: Improve glue catalog cache
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Oct 30, 2026
PedroTadim added a commit that referenced this pull request Oct 30, 2026
Backport #127043 to 26.3: Improve glue catalog cache
@clickhouse-gh clickhouse-gh Bot added comp-datalake-catalogs Data lake catalogs: the DataLakeCatalog database engine and its catalog clients - Iceberg REST, A... 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-datalake-catalogs Data lake catalogs: the DataLakeCatalog database engine and its catalog clients - Iceberg REST, A... pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-improvement Pull request with some product improvements 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants