yujun777 commented on code in PR #45181:
URL: https://github.com/apache/doris/pull/45181#discussion_r1875325929


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/SimplifyRange.java:
##########
@@ -408,7 +408,7 @@ public DiscreteValue(ExpressionRewriteContext context,
         public DiscreteValue(ExpressionRewriteContext context,
                 Expression reference, Expression toExpr, Collection<Literal> 
values) {
             super(context, reference, toExpr);
-            this.values = Sets.newTreeSet(values);
+            this.values = Sets.newHashSet(values);

Review Comment:
   may cause options of `in` is no order.
   
   check test on a in [1, 10, 20] union a in [100, 200] => a in [1, 10, 20, 
100, 200]



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to