[feature] Document layering a monthly cache_parquet over a daily one #89
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.36) × (1 − Review Confidence (0.71)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 145 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.56 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.298
Real PR Conversation Timeline
3 items
Test Results
2 347 tests +3 2 272 ✅ +3 1m 24s ⏱️ +7s
2 suites ±0 75 💤 ±0
2 files ±0 0 ❌ ±0
Results for commit 1d1b100c. ± Comparison against base commit 0aa30f16.
[test-results]:data:application/gzip;base64,H4sIAHlZ2moC/13MSw7CIBSF4a00jB1cKEhxMwZuS0Jsi+ExMu5diorE4f+d5DyIdesSyWVgp4HE7FKLOQednN9LTrx0WVLdRi6/eY0Z8TAm2c9u7l5MiiZWu7UINFhC8OEjIe/d7VF/r2/qTit0n7X7S/Tb5lIJQmdqKAAarkBYCXjWkgJazYAppYVWEx+5QfJ8Adzw1DsKAQAA
:recycle: This comment has been updated with latest results.
Approved
Approved these changes.
timkpaine
ptomecek
Description
Adds a "Layer a monthly cache over a daily cache" section to the Query Optimization guide. A long daily cache is many small files that are slow to list and read, especially on S3. Because
cache_parquetreturns aLazyFrame, a monthly cache can use the daily cache as its upstream. The section shows:CacheMode.CACHEover a daily cache inCacheMode.CACHE_ONLYwrites monthly files without querying the source;CacheMode.READ_ONLYover a daily cache inCacheMode.CACHEserves monthly files where they exist and daily files otherwise, writing nothing to the monthly cache;ttl/final_afteron the monthly layer so a month compacted before it ends is rebuilt until it is complete.test_monthly_cache_over_daily_cachecovers compaction and fallback. The API reference now states which monthsfinal_afterstops refetching and links to the new section.Type of Change
Checklist
make lint): ranmake lint-py lint-docs, passedmake test): ranpytest polars_io_tools/tests/io_sources/test_lazy_cache_parquet.py -k monthly_cache_over_daily, passed on Polars 1.44.1, 2.0.0 and 1.37.1; full suite not run