Skip to content

Commit 8eca64a

Browse files
committed
revert unnecessary change
1 parent dbd8606 commit 8eca64a

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,12 @@ object QueryPlan extends PredicateHelper {
336336
* `Attribute`, and replace it with `BoundReference` will cause error.
337337
*/
338338
def normalizeExpressions[T <: Expression](e: T, input: AttributeSeq): T = {
339-
type T2 = QueryPlan[_]
340339
e.transformUp {
341-
case s: PlanExpression[T2 @unchecked] =>
340+
case s: PlanExpression[QueryPlan[_] @unchecked] =>
342341
// Normalize the outer references in the subquery plan.
343342
val normalizedPlan = s.plan.transformAllExpressions {
344343
case OuterReference(r) => OuterReference(QueryPlan.normalizeExpressions(r, input))
345-
}.canonicalized.asInstanceOf[T2]
344+
}.canonicalized
346345
s.withNewPlan(normalizedPlan)
347346

348347
case ar: AttributeReference =>

0 commit comments

Comments
 (0)