rubenada commented on code in PR #4172:
URL: https://github.com/apache/calcite/pull/4172#discussion_r1932392820
##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -1890,6 +1890,26 @@ private static RelDataType
deriveTypeMapFromEntries(SqlOperatorBinding opBinding
OperandTypes.BINARY,
SqlFunctionCategory.STRING);
+ /**
+ * The "HEX(string)" function; converts {@code string} into a hexadecimal
varchar.
+ */
+ @LibraryOperator(libraries = {HIVE, SPARK})
+ public static final SqlFunction HEX =
+ SqlBasicFunction.create("HEX",
+ ReturnTypes.VARCHAR_NULLABLE,
+ OperandTypes.STRING,
+ SqlFunctionCategory.STRING);
+
+ /**
+ * The "HEX(string)" function; converts {@code string} into a hexadecimal
varchar.
Review Comment:
Wrong javadoc description (copy-paste error from previous method)
--
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]