@@ -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