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

Fixed leaks in unit test and use ColumnarBatch for testing #177

Merged
merged 6 commits into from
Jun 19, 2020
Merged

Fixed leaks in unit test and use ColumnarBatch for testing #177

merged 6 commits into from
Jun 19, 2020

Conversation

razajafri
Copy link
Collaborator

@razajafri razajafri commented Jun 15, 2020

This PR fixes leaks in the GpuUnitTests and also fixes the unit-testing approach to use ColumnarBatch instead of wrongly using the GpuLiteral to pass a vector

Fixes #168

@revans2
Copy link
Collaborator

revans2 commented Jun 15, 2020

build

revans2
revans2 previously approved these changes Jun 15, 2020
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.

Just one nit

tests/src/test/scala/ai/rapids/spark/GpuUnitTests.scala Outdated Show resolved Hide resolved
@sameerz sameerz added the bug Something isn't working label Jun 15, 2020
try {
withResource(evaluateWithoutCodegen(gpuExpression, inputBatch)) { actual =>

if (!checkResult(actual, expected, gpuExpression)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry one more nit I just noticed. checkResult never returns false. It either throws or returns true. So we should remove the return from it and delete the dead code here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, I didn't see the dead code.

I have addressed that concern, PTAL

@razajafri
Copy link
Collaborator Author

build

@sameerz sameerz added this to the Jun 8 - Jun 19 milestone Jun 19, 2020
@revans2 revans2 merged commit 04b76e0 into NVIDIA:branch-0.1 Jun 19, 2020
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
Co-authored-by: Raza Jafri <rjafri@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
Co-authored-by: Raza Jafri <rjafri@nvidia.com>
tgravescs pushed a commit to tgravescs/spark-rapids that referenced this pull request Nov 30, 2023
Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>
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.

[BUG] GpuUnitTests Date tests leak column vectors
3 participants