Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ class Analyzer(
}
}

private def resolve(e: Expression, q: LogicalPlan): Expression = e match {
private def resolve(e: Expression, q: LogicalPlan): Expression = e.transformUp {
case u @ UnresolvedAttribute(nameParts) =>
// Leave unchanged if resolution fails. Hopefully will be resolved next round.
val result =
Expand All @@ -827,7 +827,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