Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/20961#discussion_r178997765
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala
---
@@ -103,7 +103,7 @@ abstract class QueryPlan[PlanType <:
QueryPlan[PlanType]] extends TreeNode[PlanT
var changed = false
@inline def transformExpression(e: Expression): Expression = {
- val newE = f(e)
+ val newE = CurrentOrigin.withOrigin(e.origin) { f(e) }
--- End diff --
Nit: style issue:
```Scala
val newE = CurrentOrigin.withOrigin(e.origin) {
f(e)
}
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]