Skip to content

docs: scope the zero-collect claim to Polars-made plans - #549

Merged
JohnnyWilson16 merged 1 commit into
mainfrom
docs/lazy-claim-pandas-plans-jwd
Dec 1, 2026
Merged

JohnnyWilson16 merged 1 commit into
mainfrom
docs/lazy-claim-pandas-plans-jwd

Conversation

@JohnnyWilson16

Copy link
Copy Markdown
Contributor

Cause

#538 added a check in the Polars apply_plan branch for parse_currency: cur.select(invalid.any()).collect().item(). So a pandas-made plan with parse_currency, applied to a LazyFrame, runs one query. README line 17 still said apply_plan needs "zero .collect() calls" for every plan.

Polars-made plans never contain parse_currency (see the "Currency strings" row), so they stay fully lazy. examples/lazy_check.py is not affected.

Change (docs + test only, no code change)

  • README line 17: the zero-collect claim now names Polars-made plans and links to Known differences.
  • Known differences: new row for a pandas-made plan with parse_currency on a LazyFrame.
  • tests/test_known_differences.py: new test counts LazyFrame.collect calls. Pandas-made plan: 1. Polars-made plan: 0.

Check

Before (main 15488cb + new test):

FAILED tests/test_known_differences.py::test_pandas_plan_with_currency_runs_one_query_on_a_lazyframe
1 failed, 7 passed in 0.90s

After:

8 passed in 0.83s

Full suite: 122 passed, 2 skipped (mkdocs-material not installed locally). README blocks: ok: 2 python block(s) ran. ruff check clean.

PR #538 made apply_plan run one query on a LazyFrame when a pandas-made
plan has parse_currency. The README still said apply_plan needs zero
collect() calls for every plan. Scope the claim and add a Known
differences row. A test counts collect() calls for both plan kinds.
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e9111b0-20a3-4ac1-a6e5-b0af55d53dc3
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@JohnnyWilson16
JohnnyWilson16 merged commit 9dcf0d4 into main Dec 1, 2026
34 of 36 checks passed
@JohnnyWilson16
JohnnyWilson16 deleted the docs/lazy-claim-pandas-plans-jwd branch December 1, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant