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

Preserve tags on FileSourceScanExec [databricks] #10461

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Feb 21, 2024

Fixes a bug when falling back to the CPU for FileSourceScanExec. Unlike most CPU fallbacks where we simply preserve the original node or at most call withNewChildren on it, we are calling .copy on it to preserve the possibly GPU converted dynamic filters. Fix is relatively straightforward in that we need to call copyTagsFrom on the new instance to preserve the tags from the original instance.

@jlowe jlowe self-assigned this Feb 21, 2024
@jlowe jlowe changed the title Preserve tags on FileSourceScanExec Preserve tags on FileSourceScanExec [databricks] Feb 21, 2024
@jlowe
Copy link
Member Author

jlowe commented Feb 21, 2024

build

@sameerz sameerz added the bug Something isn't working label Feb 22, 2024
Comment on lines +342 to +344
val cpu = wrapped.copy(partitionFilters = partitionFilters)
cpu.copyTagsFrom(wrapped)
cpu
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have the same code for all shims. Can we extract that to a base class/function and get rid of all these repeated ones?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it OK if that's tracked as a followup? There's a lot more than this method duplicated between shims, and this is trying to unblock the 24.02 release.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure, I'm fine with that.

@jlowe jlowe merged commit 3f6196d into NVIDIA:branch-24.02 Feb 22, 2024
39 of 40 checks passed
@jlowe jlowe deleted the fix-filesourcescanexec-tags branch February 22, 2024 17:47
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.

4 participants