We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 297cc90 commit d38492fCopy full SHA for d38492f
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionTypeCheckingSuite.scala
@@ -55,7 +55,7 @@ class ExpressionTypeCheckingSuite extends SparkFunSuite {
55
test("check types for unary arithmetic") {
56
assertError(UnaryMinus('stringField), "operator - accepts numeric type")
57
assertSuccess(Sqrt('stringField)) // We will cast String to Double for sqrt
58
- assertError(Sqrt('booleanField), "function sqrt accepts numeric type")
+ assertSuccess(Sqrt('booleanField)) // We will cast Boolean to Double for sqrt
59
assertError(Abs('stringField), "function abs accepts numeric type")
60
assertError(BitwiseNot('stringField), "operator ~ accepts integral type")
61
}
0 commit comments