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

Fix tiered project breaking higher order functions #9538

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Oct 25, 2023

This fixes an issue where tiered project can break the evaluation of higher order functions by combining lambda functions that cannot be evaluated in isolation, separate from the context of the higher-order function being evaluated. This eventually triggers an attempt to evaluate an unevaluable lambda variable and crashes the query.

addExprTree tries to avoid this, but is checking for the CPU version of lambda variables rather than the GPU version. That logic has been removed since it's ineffective in practice. GpuLambdaFunction was updated to override disableTieredProjectCombine so its expression tree will never be combined with others.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe self-assigned this Oct 25, 2023
@jlowe
Copy link
Member Author

jlowe commented Oct 25, 2023

build

Copy link
Collaborator

@jbrennan333 jbrennan333 left a comment

Choose a reason for hiding this comment

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

+1 lgtm.

@jlowe jlowe merged commit f434e5e into NVIDIA:branch-23.12 Oct 25, 2023
28 of 31 checks passed
@jlowe jlowe deleted the fix-tiered-project-lambda branch October 25, 2023 19:45
@sameerz sameerz added the bug Something isn't working label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants