Skip to content

Commit

Permalink
test refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed May 6, 2024
1 parent c41909c commit 7befae9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,9 @@ class VariantExpressionSuite extends SparkFunSuite with ExpressionEvalHelper {
"Hello")
}

test("tryParseJson negative") {
test("SPARK-48150: ParseJson expression nullability") {
assert(!ParseJson(Literal("["), failOnError = true).replacement.nullable)
assert(ParseJson(Literal("["), failOnError = false).replacement.nullable)
checkEvaluation(
ParseJson(Literal("["), failOnError = false).replacement,
null
Expand Down

0 comments on commit 7befae9

Please sign in to comment.