xuzifu666 commented on code in PR #4176:
URL: https://github.com/apache/calcite/pull/4176#discussion_r1938385541
##########
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:
##########
@@ -5173,6 +5173,26 @@ void testBitGetFunc(SqlOperatorFixture f, String
functionName) {
f.checkString("to_base64(x'61')", "YQ==", "VARCHAR NOT NULL");
}
+ @Test void testBase64() {
+ final SqlOperatorFixture f = fixture().withLibrary(SqlLibrary.HIVE);
+ f.setFor(SqlLibraryOperators.BASE64);
+ f.checkString("base64(cast('a' as binary))", "YQ==", "VARCHAR NOT NULL");
+ f.checkString("base64('')", "", "VARCHAR NOT NULL");
Review Comment:
It would be null and had added case to it.
--
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]