morrySnow commented on code in PR #30840:
URL: https://github.com/apache/doris/pull/30840#discussion_r1496873527
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/util/TypeCoercionUtils.java:
##########
@@ -962,7 +963,13 @@ public static Expression processInPredicate(InPredicate
inPredicate) {
.stream()
.map(Expression::getDataType).collect(Collectors.toList()),
true);
- if (optionalCommonType.isPresent() &&
!supportCompare(optionalCommonType.get())) {
+ if (inPredicate.getCompareExpr().getDataType().isStructType() &&
optionalCommonType.isPresent()
+ && !optionalCommonType.get().isStructType()) {
+ throw new AnalysisException("data type " + optionalCommonType.get()
+ + " could not used in InPredicate " + inPredicate.toSql());
Review Comment:
this exception message is inappropriate
--
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]