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

Include Expr to datafusion::prelude #2347

Closed
alamb opened this issue Apr 26, 2022 · 0 comments · Fixed by #2348
Closed

Include Expr to datafusion::prelude #2347

alamb opened this issue Apr 26, 2022 · 0 comments · Fixed by #2348
Assignees
Labels
datafusion Changes in the datafusion crate enhancement New feature or request

Comments

@alamb
Copy link
Contributor

alamb commented Apr 26, 2022

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The datafusion prelude includes many helpful functions for constructing Exprs such as lit, col, etc: https://github.com/apache/arrow-datafusion/blob/master/datafusion/core/src/prelude.rs

I often find myself needing to use Expr as well, which for some reason is not included in the prelude but would be more convenient if it were.

Describe the solution you'd like
add Expr to prelude so instead of

use datafusion::logical_plan::Expr;

People can just do

use datafusion::prelude::*;

or

use datafusion::prelude::Expr;

Describe alternatives you've considered
Not doing it

@alamb alamb added enhancement New feature or request datafusion Changes in the datafusion crate labels Apr 26, 2022
@alamb alamb self-assigned this Apr 26, 2022
@alamb alamb changed the title Include Expr to prelude Include Expr to datafusion::prelude Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant