Skip to content

Commit

Permalink
Merge branch 'apache:master' into miland-db/string-replace
Browse files Browse the repository at this point in the history
  • Loading branch information
miland-db authored Mar 25, 2024
2 parents e0ce699 + 1b55fd3 commit 0711242
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ class ToPrettyStringSuite extends SparkFunSuite with ExpressionEvalHelper {
}

test("Variant as pretty strings") {
checkEvaluation(
ToPrettyString(Literal(new VariantVal(Array[Byte](1, 2, 3), Array[Byte](4, 5)))),
UTF8String.fromBytes(Array[Byte](1, 2, 3)).toString)
val v = new VariantVal(Array[Byte](1, 2, 3), Array[Byte](1, 1))
checkEvaluation(ToPrettyString(Literal(v)), UTF8String.fromString(v.toString))
}
}

0 comments on commit 0711242

Please sign in to comment.