Skip to content
Closed
Show file tree
Hide file tree
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 @@ -113,6 +113,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
protected[sql] lazy val analyzer: Analyzer =
new Analyzer(catalog, functionRegistry, caseSensitive = true) {
override val extendedResolutionRules =
ExtractPythonUdfs ::
sources.PreWriteCheck(catalog) ::
sources.PreInsertCastAndRename ::
Nil
Expand Down Expand Up @@ -1059,7 +1060,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
@DeveloperApi
protected[sql] class QueryExecution(val logical: LogicalPlan) {

lazy val analyzed: LogicalPlan = ExtractPythonUdfs(analyzer(logical))
lazy val analyzed: LogicalPlan = analyzer(logical)
lazy val withCachedData: LogicalPlan = cacheManager.useCachedData(analyzed)
lazy val optimizedPlan: LogicalPlan = optimizer(withCachedData)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ case class EvaluatePython(
extends logical.UnaryNode {

def output = child.output :+ resultAttribute

// References should not include the produced attribute.
override def references = udf.references
}

/**
Expand Down