Skip to content

Commit

Permalink
Make the order of complex grouping key consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-stec authored and sopel39 committed Sep 20, 2023
1 parent 830c943 commit 6754df7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ private GroupingSetsPlan planGroupingSets(PlanBuilder subPlan, QuerySpecificatio
groupingSetMappings.put(output, input);
}

Map<ScopeAware<Expression>, Symbol> complexExpressions = new HashMap<>();
Map<ScopeAware<Expression>, Symbol> complexExpressions = new LinkedHashMap<>();
for (Expression expression : groupingSetAnalysis.getComplexExpressions()) {
if (!complexExpressions.containsKey(scopeAwareKey(expression, analysis, subPlan.getScope()))) {
Symbol input = subPlan.translate(expression);
Expand Down

0 comments on commit 6754df7

Please sign in to comment.