Skip to content

adjusted polars / slice command to return lazy output on lazy input#17067

Merged
ayax79 merged 1 commit into
nushell:mainfrom
blackhat-hemsworth:lazy-slice
Nov 24, 2025
Merged

adjusted polars / slice command to return lazy output on lazy input#17067
ayax79 merged 1 commit into
nushell:mainfrom
blackhat-hemsworth:lazy-slice

Conversation

@blackhat-hemsworth
Copy link
Copy Markdown
Contributor

@blackhat-hemsworth blackhat-hemsworth commented Nov 24, 2025

Release notes summary - What our users need to know

This PR fixes the "polars slice" command so that it will return a lazyframe output when given a lazyframe as input. Fixes #17065

Tasks after submitting

@github-actions github-actions Bot added A:plugin-polars Work related to the polars dataframe implementation A:plugins This issue is about plugins labels Nov 24, 2025
@blackhat-hemsworth
Copy link
Copy Markdown
Contributor Author

I tried to model the implementation off of "polars first" where it maps to different command_ functions based on the input type. I also added an example (I wanted to work off of a failing test).

Let me know any missteps, new to the project, new-ish to Rust development.

@ayax79
Copy link
Copy Markdown
Contributor

ayax79 commented Nov 24, 2025

Looks good, thanks!

@ayax79 ayax79 merged commit 6ee1109 into nushell:main Nov 24, 2025
16 checks passed
@github-actions github-actions Bot added this to the v0.109.0 milestone Nov 24, 2025
@blackhat-hemsworth blackhat-hemsworth deleted the lazy-slice branch November 24, 2025 23:33
@WindSoilder WindSoilder added notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Nov 24, 2025
@NotTheDr01ds
Copy link
Copy Markdown
Contributor

Great work - Thank you!

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

Labels

A:plugin-polars Work related to the polars dataframe implementation A:plugins This issue is about plugins notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

polars slice cannot return a lazyframe

4 participants