-
Notifications
You must be signed in to change notification settings - Fork 232
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
Conversation
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit
try { | ||
withResource(evaluateWithoutCodegen(gpuExpression, inputBatch)) { actual => | ||
|
||
if (!checkResult(actual, expected, gpuExpression)) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
build |
Co-authored-by: Raza Jafri <rjafri@nvidia.com>
Co-authored-by: Raza Jafri <rjafri@nvidia.com>
Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>
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