Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you committed Jun 23, 2020
1 parent 6765395 commit dc86b82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1885,15 +1885,15 @@ class Analyzer(
}

/**
* Replaces [[UnresolvedFunction]]s and [[UnresolvedFunc]] with concrete [[Expression]]s.
* Replaces [[UnresolvedFunction]]s and [[UnresolvedFunc]]s with concrete [[Expression]]s.
*/
object ResolveFunctions extends Rule[LogicalPlan] {
val trimWarningEnabled = new AtomicBoolean(true)
def apply(plan: LogicalPlan): LogicalPlan = plan.resolveOperatorsUp {
case UnresolvedFunc(multipartIdent) =>
val funcIdent = parseSessionCatalogFunctionIdentifier(multipartIdent, s"${plan.nodeName}")
val info = v1SessionCatalog.lookupFunctionInfo(funcIdent)
ResolvedFunc(currentCatalog, CatalogFunction(funcIdent, info.getClassName, Seq()))
ResolvedFunc(currentCatalog, CatalogFunction(funcIdent, info.getClassName, Nil))

case q: LogicalPlan =>
q transformExpressions {
Expand Down

0 comments on commit dc86b82

Please sign in to comment.