Skip to content

Commit

Permalink
revert unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-toth committed Jun 26, 2020
1 parent dbd8606 commit 8eca64a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,12 @@ object QueryPlan extends PredicateHelper {
* `Attribute`, and replace it with `BoundReference` will cause error.
*/
def normalizeExpressions[T <: Expression](e: T, input: AttributeSeq): T = {
type T2 = QueryPlan[_]
e.transformUp {
case s: PlanExpression[T2 @unchecked] =>
case s: PlanExpression[QueryPlan[_] @unchecked] =>
// Normalize the outer references in the subquery plan.
val normalizedPlan = s.plan.transformAllExpressions {
case OuterReference(r) => OuterReference(QueryPlan.normalizeExpressions(r, input))
}.canonicalized.asInstanceOf[T2]
}.canonicalized
s.withNewPlan(normalizedPlan)

case ar: AttributeReference =>
Expand Down

0 comments on commit 8eca64a

Please sign in to comment.