Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Aug 7, 2024
1 parent 1ae8196 commit 896ebc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.apache.doris.nereids.trees.expressions.visitor.DefaultExpressionVisitor;
import org.apache.doris.nereids.util.ExpressionUtils;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

Expand All @@ -39,9 +39,9 @@
*/
public class PredicatesSplitter {

private final Set<Expression> equalPredicates = new HashSet<>();
private final Set<Expression> rangePredicates = new HashSet<>();
private final Set<Expression> residualPredicates = new HashSet<>();
private final Set<Expression> equalPredicates = new LinkedHashSet<>();
private final Set<Expression> rangePredicates = new LinkedHashSet<>();
private final Set<Expression> residualPredicates = new LinkedHashSet<>();
private final List<Expression> conjunctExpressions;

public PredicatesSplitter(Expression target) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void assetEquals(String expression,
String expectedRangeExpr,
String expectedResidualExpr) {

Map<String, Slot> mem = Maps.newHashMap();
Map<String, Slot> mem = Maps.newLinkedHashMap();
Expression targetExpr = replaceUnboundSlot(PARSER.parseExpression(expression), mem);
SplitPredicate splitPredicate = Predicates.splitPredicates(targetExpr);

Expand Down

0 comments on commit 896ebc7

Please sign in to comment.