Skip to content
Prev Previous commit
Next Next commit
added additional unit test
  • Loading branch information
codeatri committed Aug 8, 2018
commit 652663077e383f8b188743c4494d697e34d5d02c
Original file line number Diff line number Diff line change
Expand Up @@ -2266,6 +2266,13 @@ class DataFrameFunctionsSuite extends QueryTest with SharedSQLContext {
}
assert(ex2.getMessage.contains(
"The number of lambda function arguments '3' does not match"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indent


val ex3 = intercept[RuntimeException] {
dfExample3.selectExpr("transform_keys(x, (k, v) -> v)").show()
}
assert(ex3.getMessage.contains("Cannot use null as map key!"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we can do those tests only with dfExample3?



}

testInvalidLambdaFunctions()
Expand Down