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 tests for GpuInSet #3397

Merged
merged 3 commits into from
Sep 7, 2021
Merged

Conversation

sperlingxx
Copy link
Collaborator

@sperlingxx sperlingxx commented Sep 7, 2021

Signed-off-by: sperlingxx lovedreamf@gmail.com

Closes #2764

After tests, I found that current implementation of GpuInSet can fully adapt SPARK-35316. If I understand correctly, the datatype of needles is the same as haystack, since we build the needles from child's datatype. The potential problem is what if some values in needles can not cast to child's datatype, such as: select cast(a as int) in (1L, 2L, 3147483647L). The lit value 3147483647L can not be casted to INT32 due to out of range. It seems we don't need to worry about that, because these outliers will be removed in UnwrapCastInBinaryComparsion.

Signed-off-by: sperlingxx <lovedreamf@gmail.com>
@sperlingxx sperlingxx requested a review from revans2 September 7, 2021 10:18
@sperlingxx
Copy link
Collaborator Author

build

@sperlingxx
Copy link
Collaborator Author

build

@revans2 revans2 merged commit 0305203 into NVIDIA:branch-21.10 Sep 7, 2021
@sperlingxx sperlingxx deleted the gpuinset_upcast_320 branch September 8, 2021 02:37
@sameerz sameerz added the test Only impacts tests label Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Only impacts tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check if casting needed for Set and InSet after SPARK-35316
3 participants