-
Notifications
You must be signed in to change notification settings - Fork 169
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
test: Add tests for Scalar and Inverval values for UnaryMinus #538
Conversation
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.
Mostly looks good.
Somehow Github failed launching CI...
spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala
Outdated
Show resolved
Hide resolved
spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala
Outdated
Show resolved
Hide resolved
pending ci |
Thanks @vaibhawvipul and @kazuyukitanimura |
@@ -1635,7 +1637,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper { | |||
case (Some(sparkException), Some(cometException)) => | |||
assert(sparkException.getMessage.contains(dtype + " overflow")) | |||
assert(cometException.getMessage.contains(dtype + " overflow")) | |||
case (None, None) => assert(true) // got same outputs | |||
case (None, None) => checkSparkAnswerAndOperator(sql(query)) |
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.
nit: we call checkSparkMaybeThrows,
, and if that doesn't fail, then we call checkSparkAnswerAndOperator
. I think this could all be streamlined, but this is beyond the scope of this PR
…#538) * adding scalar tests * refactor and test for interval * ci checks fixed * running operator checks when no error * removing redundant sqlconf * fix ci errorsg * moving interval test to array section * ci fixes
Which issue does this PR close?
Closes #508 .
Rationale for this change
Improves test coverage for various unary minus.
What changes are included in this PR?
Tests for scalar values and intervals.
How are these changes tested?
All tests pass.