File tree 2 files changed +1
-7
lines changed
spark/src/test/scala/org/apache 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1146,10 +1146,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
1146
1146
}
1147
1147
}
1148
1148
1149
- // TODO: test currently fails with
1150
- // Unsupported Data Type: Spark `expm1` function expects Float64, got Utf8
1151
1149
test(" expm1" ) {
1152
- // TODO test with null inputs
1153
1150
val testValues = Seq (
1154
1151
- 1 ,
1155
1152
0 ,
Original file line number Diff line number Diff line change @@ -111,8 +111,6 @@ abstract class CometTestBase
111
111
actualAnswer : Row ,
112
112
expectedAnswer : Row ,
113
113
absTol : Double ): Unit = {
114
- // scalastyle:off println
115
- println(s " actual= $actualAnswer, expected= $expectedAnswer" )
116
114
require(
117
115
actualAnswer.length == expectedAnswer.length,
118
116
s " actual answer length ${actualAnswer.length} != " +
@@ -122,8 +120,7 @@ abstract class CometTestBase
122
120
actualAnswer.toSeq.zip(expectedAnswer.toSeq).foreach {
123
121
case (actual : Double , expected : Double ) =>
124
122
if (actual.isInfinity || expected.isInfinity) {
125
- assert(actual.isInfinity == expected.isInfinity,
126
- s " actual answer $actual != $expected" )
123
+ assert(actual.isInfinity == expected.isInfinity, s " actual answer $actual != $expected" )
127
124
} else if (! actual.isNaN && ! expected.isNaN) {
128
125
assert(
129
126
math.abs(actual - expected) < absTol,
You can’t perform that action at this time.
0 commit comments