wForget commented on code in PR #47410:
URL: https://github.com/apache/spark/pull/47410#discussion_r1683712701
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/StringExpressionsSuite.scala:
##########
@@ -520,6 +520,10 @@ class StringExpressionsSuite extends SparkFunSuite with
ExpressionEvalHelper {
withSQLConf(SQLConf.CHUNK_BASE64_STRING_ENABLED.key -> "true") {
checkEvaluation(Base64(Literal(longString.getBytes)), chunkEncoded)
}
+
+ // check if unbase64 works well for chunked and non-chunked encoded strings
+ checkEvaluation(StringDecode(UnBase64(Literal(encoded)),
Literal("utf-8")), longString)
+ checkEvaluation(StringDecode(UnBase64(Literal(chunkEncoded)),
Literal("utf-8")), longString)
Review Comment:
I added this case to confirm that the chunkEncoded string can be decoded
correctly. cc @cloud-fan
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]