Skip to content

Commit 5c8d24d

Browse files
author
Cody Koeninger
committed
SPARK-3462 remove now-unused parameter
1 parent 0788691 commit 5c8d24d

File tree

1 file changed

+3
-3
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer

1 file changed

+3
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object UnionPushdown extends Rule[LogicalPlan] {
6666
* This method relies on the fact that the output attributes of a union are always equal
6767
* to the left child's output.
6868
*/
69-
def pushToRight[A <: Expression](e: A, union: Union, rewrites: AttributeMap[Attribute]): A = {
69+
def pushToRight[A <: Expression](e: A, rewrites: AttributeMap[Attribute]): A = {
7070
val result = e transform {
7171
case a: Attribute => rewrites(a)
7272
}
@@ -82,14 +82,14 @@ object UnionPushdown extends Rule[LogicalPlan] {
8282
val rewrites = buildRewrites(u)
8383
Union(
8484
Filter(condition, left),
85-
Filter(pushToRight(condition, u, rewrites), right))
85+
Filter(pushToRight(condition, rewrites), right))
8686

8787
// Push down projection into union
8888
case Project(projectList, u @ Union(left, right)) =>
8989
val rewrites = buildRewrites(u)
9090
Union(
9191
Project(projectList, left),
92-
Project(projectList.map(pushToRight(_, u, rewrites)), right))
92+
Project(projectList.map(pushToRight(_, rewrites)), right))
9393
}
9494
}
9595

0 commit comments

Comments
 (0)