Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zml1206 committed Jan 14, 2025
1 parent 48e9475 commit 6f369c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ object RewriteWithExpression extends Rule[LogicalPlan] {
if (commonExprs.isEmpty) {
inputPlan
} else {
Project(inputPlan.output ++ commonExprs.map(_._1), inputPlan)
Project(inputPlan.output ++ commonExprs.map(_._1).sortWith(_.exprId.id < _.exprId.id),
inputPlan)
}
}
newPlan = newPlan.withNewChildren(newChildren)
Expand Down

0 comments on commit 6f369c9

Please sign in to comment.