mihaibudiu commented on code in PR #4074:
URL: https://github.com/apache/calcite/pull/4074#discussion_r1866788796
##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -1166,7 +1166,14 @@ static RelDataType deriveTypeSplit(SqlOperatorBinding
operatorBinding,
SqlKind.OTHER_FUNCTION,
ReturnTypes.BIGINT_NULLABLE,
null,
- OperandTypes.NUMERIC.or(OperandTypes.BINARY),
+ OperandTypes.or(OperandTypes.NUMERIC,
+ OperandTypes.BINARY,
+ OperandTypes.BOOLEAN,
+ OperandTypes.CHARACTER,
+ OperandTypes.DATETIME,
Review Comment:
This function you wrote `bitCountMySQL` is part of the runtime.
You just need to pass it an extra argument that describes the type.
--
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]