-
Notifications
You must be signed in to change notification settings - Fork 83
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
Conversation
src/expr/limit.rs
Outdated
|
||
// 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 |
There was a problem hiding this comment.
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())
.
There was a problem hiding this comment.
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.
Co-authored-by: Liang-Chi Hsieh <[email protected]>
* 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]>
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?