morrySnow commented on code in PR #47830:
URL: https://github.com/apache/doris/pull/47830#discussion_r1952276268
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/RangeInference.java:
##########
@@ -217,7 +217,7 @@ public static ValueDesc union(ExpressionRewriteContext
context,
/** merge discrete and ranges only, no merge other value desc */
public static List<ValueDesc>
unionDiscreteAndRange(ExpressionRewriteContext context,
Expression reference, List<ValueDesc> valueDescs) {
- Set<ComparableLiteral> discreteValues = Sets.newHashSet();
+ Set<ComparableLiteral> discreteValues = Sets.newLinkedHashSet();
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]