-
Notifications
You must be signed in to change notification settings - Fork 435
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
[GLUTEN-6827][VL] Add a new test case for Round's coverage #6884
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/apache/incubator-gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
Run Gluten Clickhouse CI |
Hi @jiangjiangtian, would you think it's possible to add a case to |
1d19a9e
to
b541ff8
Compare
Run Gluten Clickhouse CI |
@zhztheplayer Thank for your remind. I have add a test in |
// test("Test round expression") { | ||
// val df1 = runQueryAndCompare("SELECT round(cast(0.5549999999999999 as double), 2)") { _ => } | ||
// checkLengthAndPlan(df1, 1) | ||
// val df2 = runQueryAndCompare("SELECT round(cast(0.19324999999999998 as double), 2)") { _ => } | ||
// checkLengthAndPlan(df2, 1) | ||
// } |
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.
Comparing to commenting the code out, you can use ignore
scalatest flag, e.g.,
ignore("Test round expression") {
...
}
@@ -2078,4 +2078,12 @@ class TestOperator extends VeloxWholeStageTransformerSuite with AdaptiveSparkPla | |||
checkGlutenOperatorMatch[SortExecTransformer] | |||
} | |||
} | |||
|
|||
// Open it after fix |
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.
Better change to // Enable the test after fixing https://github.com/apache/incubator-gluten/issues/6827
, thanks.
@@ -124,6 +124,8 @@ class GlutenMathExpressionsSuite extends MathExpressionsSuite with GlutenTestsTr | |||
checkEvaluation(Round(1.12345678901234567, 8), 1.12345679) | |||
checkEvaluation(Round(-0.98765432109876543, 5), -0.98765) | |||
checkEvaluation(Round(12345.67890123456789, 6), 12345.678901) | |||
// Open it after fix |
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.
ditto
@@ -252,6 +252,8 @@ class GlutenMathExpressionsSuite extends MathExpressionsSuite with GlutenTestsTr | |||
checkEvaluation(Round(1.12345678901234567, 8), 1.12345679) | |||
checkEvaluation(Round(-0.98765432109876543, 5), -0.98765) | |||
checkEvaluation(Round(12345.67890123456789, 6), 12345.678901) | |||
// Open it after fix |
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.
ditto
@@ -248,6 +248,8 @@ class GlutenMathExpressionsSuite extends MathExpressionsSuite with GlutenTestsTr | |||
checkEvaluation(BRound(-3.5, 0), -4.0) | |||
checkEvaluation(BRound(-0.35, 1), -0.4) | |||
checkEvaluation(BRound(-35, -1), -40) | |||
// Open it after fix |
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.
ditto
@@ -251,6 +251,8 @@ class GlutenMathExpressionsSuite extends MathExpressionsSuite with GlutenTestsTr | |||
checkEvaluation(Round(1.12345678901234567, 8), 1.12345679) | |||
checkEvaluation(Round(-0.98765432109876543, 5), -0.98765) | |||
checkEvaluation(Round(12345.67890123456789, 6), 12345.678901) | |||
// Open it after fix |
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.
ditto
b541ff8
to
745be02
Compare
Run Gluten Clickhouse CI |
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.
👍
745be02
to
1294d5f
Compare
Run Gluten Clickhouse CI |
@zhztheplayer Sorry, I forget to add a comment and I add it just now. Please review again. |
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.
Thanks!
A new test case found in #6827.
After fix, we can uncomment it.