Skip to content

Commit

Permalink
Merge pull request apache#344 from palantir/rk/mapproductiteratorwith…
Browse files Browse the repository at this point in the history
…origin

transformexpression with origin
  • Loading branch information
mccheah authored Mar 30, 2018
2 parents 95cf5f7 + 479cf46 commit bb10a57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.apache.spark.sql.catalyst.plans

import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.sql.catalyst.trees.TreeNode
import org.apache.spark.sql.catalyst.trees.{CurrentOrigin, TreeNode}
import org.apache.spark.sql.internal.SQLConf
import org.apache.spark.sql.types.{DataType, StructType}

Expand Down Expand Up @@ -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) }
if (newE.fastEquals(e)) {
e
} else {
Expand Down

0 comments on commit bb10a57

Please sign in to comment.