Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python wrapper for LogicalPlan::Limit #193

Merged
merged 12 commits into from
Feb 19, 2023
Merged

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Feb 18, 2023

Which issue does this PR close?

Part of #191

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@andygrove andygrove marked this pull request as ready for review February 19, 2023 00:27
src/expr/limit.rs Outdated Show resolved Hide resolved
src/expr/limit.rs Outdated Show resolved Hide resolved

// Retrieves the input `LogicalPlan` to this `Limit` node
fn input(&self) -> PyResult<PyLogicalPlan> {
// DataFusion make a loose guarantee that each Limit should have an input, however
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, is Limit different to other op e.g., Sort? I.e., #196, it is simply PyLogicalPlan::from((*self.sort.input).clone()).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I based this one on projection. I have now simplified both as part of this PR. Thanks for catching this.

@andygrove andygrove merged commit b8ef9bf into apache:main Feb 19, 2023
@andygrove andygrove deleted the limit branch February 19, 2023 19:50
andygrove added a commit that referenced this pull request Feb 22, 2023
* changelog (#188)

* Add Python wrapper for LogicalPlan::Sort (#196)

* Add Python wrapper for LogicalPlan::Aggregate (#195)

* Add Python wrapper for LogicalPlan::Limit (#193)

* Add Python wrapper for LogicalPlan::Filter (#192)

* Add Python wrapper for LogicalPlan::Filter

* clippy

* clippy

* Update src/expr/filter.rs

Co-authored-by: Liang-Chi Hsieh <[email protected]>

---------

Co-authored-by: Liang-Chi Hsieh <[email protected]>

* Add tests for recently added functionality (#199)

* Add experimental support for executing SQL with Polars and Pandas (#190)

* Run `maturin develop` instead of `cargo build` in verification script (#200)

* Implement `to_pandas()` (#197)

* Implement to_pandas()

* Update documentation

* Write unit test

* Add support for cudf as a physical execution engine (#205)

* Update README in preparation for 0.8 release (#206)

* Analyze table bindings (#204)

* method for getting the internal LogicalPlan instance

* Add explain plan method

* Add bindings for analyze table

* Add to_variant

* cargo fmt

* blake and flake formatting

* changelog (#209)

---------

Co-authored-by: Liang-Chi Hsieh <[email protected]>
Co-authored-by: Dejan Simic <[email protected]>
Co-authored-by: Jeremy Dyer <[email protected]>
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.

2 participants