File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 18
18
package org .apache .spark .sql .catalyst .plans
19
19
20
20
import org .apache .spark .sql .catalyst .expressions ._
21
- import org .apache .spark .sql .catalyst .trees .TreeNode
21
+ import org .apache .spark .sql .catalyst .trees .{ CurrentOrigin , TreeNode }
22
22
import org .apache .spark .sql .internal .SQLConf
23
23
import org .apache .spark .sql .types .{DataType , StructType }
24
24
@@ -103,7 +103,7 @@ abstract class QueryPlan[PlanType <: QueryPlan[PlanType]] extends TreeNode[PlanT
103
103
var changed = false
104
104
105
105
@ inline def transformExpression (e : Expression ): Expression = {
106
- val newE = f(e)
106
+ val newE = CurrentOrigin .withOrigin(e.origin) { f(e) }
107
107
if (newE.fastEquals(e)) {
108
108
e
109
109
} else {
You can’t perform that action at this time.
0 commit comments