morrySnow commented on code in PR #47828:
URL: https://github.com/apache/doris/pull/47828#discussion_r1952276929
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/SimplifyRange.java:
##########
@@ -246,7 +247,7 @@ public static ValueDesc intersect(ExpressionRewriteContext
context, RangeValue r
public static ValueDesc range(ExpressionRewriteContext context,
ComparisonPredicate predicate) {
Literal value = (Literal) predicate.right();
if (predicate instanceof EqualTo) {
- return new DiscreteValue(context, predicate.left(), predicate,
value);
+ return new DiscreteValue(context, predicate.left(), predicate,
Sets.newHashSet(value));
Review Comment:
Add comments to make it clear why LinkedHashSet is necessary here.
--
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]