Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/10527#discussion_r50161066
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala
---
@@ -130,4 +130,49 @@ class MiscFunctionsSuite extends SparkFunSuite with
ExpressionEvalHelper {
}
}
}
+
+ test("aesEncrypt") {
+ checkEvaluation(Base64(AesEncrypt(Literal("ABC".getBytes),
+ Literal("1234567890123456".getBytes))), "y6Ss+zCYObpCbgfWfyNWTw==")
+ checkEvaluation(Base64(AesEncrypt(Literal("".getBytes),
+ Literal("1234567890123456".getBytes))), "BQGHoM3lqYcsurCRq3PlUw==")
+
+ // Before testing this, installing Java Cryptography Extension (JCE)
+ // Unlimited Strength Jurisdiction Policy Files first
+// checkEvaluation(Base64(AesEncrypt(Literal("ABC".getBytes),
+// Literal("12345678901234561234567890123456".getBytes))),
"nYfCuJeRd5eD60yXDw7WEA==")
--- End diff --
I think it might be okay, as long as the failure is clear and it doesn't
break other things when its not installed. What happens when its not installed?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]