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 optional projection via AST expression evaluation #3165

Merged
merged 2 commits into from
Aug 9, 2021

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Aug 6, 2021

Adds the ability to implement a projection via cudf AST expression evaluation if the expressions are supported by cudf AST. The RapidsMeta and GpuExpression objects are reused, extended with new tagForAst and convertToAst methods, respectively.

I covered as many unary and binary AST operators as I could get to be compatible. Many of the missing AST operators cannot be supported to to lacking expressiveness in the AST for NaN handling, null literals, conditional execution, etc.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe added this to the Aug 2 - Aug 13 milestone Aug 6, 2021
@jlowe jlowe self-assigned this Aug 6, 2021
@jlowe
Copy link
Member Author

jlowe commented Aug 6, 2021

build

Copy link
Collaborator

@revans2 revans2 left a comment

Choose a reason for hiding this comment

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

Really just some nits and doc improvements. At some point we have to think about documentation too. It is getting to be very clear that the lambda vs non-lambda distinction in Spark will not map one to one to the AST work. At some point we need to rip out the Lambda doc generation code entirely, and replace it with something that explains how we do it for various operators and shows AST support. Could you file a follow on issue for us to figure that out?

Copy link
Member Author

@jlowe jlowe left a comment

Choose a reason for hiding this comment

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

At some point we need to rip out the Lambda doc generation code entirely, and replace it with something that explains how we do it for various operators and shows AST support. Could you file a follow on issue for us to figure that out?

Filed #3172 to track.

The other review comments should be addressed.

@jlowe
Copy link
Member Author

jlowe commented Aug 9, 2021

build

@jlowe jlowe merged commit 6c508d6 into NVIDIA:branch-21.10 Aug 9, 2021
@jlowe jlowe deleted the ast-project branch August 9, 2021 17:53
@sameerz sameerz added the task Work required that improves the product but is not user facing label Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Work required that improves the product but is not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants