Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,6 @@ class Analyzer(
result
case UnresolvedExtractValue(child, fieldExpr) if child.resolved =>
ExtractValue(child, fieldExpr, resolver)
case _ => e.mapChildren(resolve(_, q))
}

def apply(plan: LogicalPlan): LogicalPlan = plan.transformUp {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ abstract class TreeNode[BaseType <: TreeNode[BaseType]] extends Product {
val arr = Array.ofDim[B](productArity)
var i = 0
while (i < arr.length) {
arr(i) = f(productElement(i))
CurrentOrigin.withOrigin(origin) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the origin you want - the one you want is productElement(i) since this is the element being mapped over. Fixing it here is hard because of types - as f takes Any. I spent some time looking at this yesterday and I think easiest thing to do is #344

arr(i) = f(productElement(i))
}
i += 1
}
arr
Expand Down