caicancai commented on code in PR #3785:
URL: https://github.com/apache/calcite/pull/3785#discussion_r1592619944
##########
core/src/main/java/org/apache/calcite/sql/type/OperandTypes.java:
##########
@@ -986,6 +986,14 @@ public static SqlSingleOperandTypeChecker same(int
operandCount,
public static final SqlSingleOperandTypeChecker ANY_ANY =
family(SqlTypeFamily.ANY, SqlTypeFamily.ANY);
+
+ public static final SqlSingleOperandTypeChecker SECOND_THIRD_SAME =
+ new SameOperandTypeChecker(3) {
Review Comment:
I think I understand what you mean, like nvl2(2.0, 'abc', 2) is allowed in
spark, but
nvl2(2.0, true, 2) is not allowed because Boolean and numeric are not
comparable
--
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]