nizarhejazi commented on code in PR #8769:
URL: https://github.com/apache/pinot/pull/8769#discussion_r881946249
##########
pinot-common/src/main/java/org/apache/pinot/common/function/scalar/DataTypeConversionFunctions.java:
##########
@@ -39,6 +39,12 @@ public class DataTypeConversionFunctions {
private DataTypeConversionFunctions() {
}
+ // SQL Calcite fails to parse 'cast(value, targetType)' as cast is a
reserved SQL keyword.
+ @ScalarFunction
+ public static Object cast2(Object value, String targetTypeLiteral) {
Review Comment:
@Jackie-Jiang I am using this as ingestion transform. Can I set ingestion
transform to "CAST(colName AS targetType)"?
--
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]