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

[Rust] [DataFusion] Table API collect() should not require context #17106

Closed
asfimport opened this issue Mar 29, 2020 · 1 comment
Closed

[Rust] [DataFusion] Table API collect() should not require context #17106

asfimport opened this issue Mar 29, 2020 · 1 comment

Comments

@asfimport
Copy link

The Table API requires the context to be passed into the collect() method which leads to this odd code.

let results = ctx.table("alltypes_plain")?
    .filter(col("c12").gt(&lit_f64(0.5)))?
    .aggregate(vec![col("c1")], vec![min(col("c12"))])?
    .collect(&mut ctx, 1024)?; 

Since the table comes from the context, it should not be necessary to pass the context back in.

Reporter: Andy Grove / @andygrove
Assignee: Andy Grove / @andygrove

Note: This issue was originally created as ARROW-8265. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Andy Grove / @andygrove:
This was fixed in #7972

@asfimport asfimport added this to the 2.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants