File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
113
113
protected [sql] lazy val analyzer : Analyzer =
114
114
new Analyzer (catalog, functionRegistry, caseSensitive = true ) {
115
115
override val extendedResolutionRules =
116
+ ExtractPythonUdfs ::
116
117
sources.PreWriteCheck (catalog) ::
117
118
sources.PreInsertCastAndRename ::
118
119
Nil
@@ -1059,7 +1060,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
1059
1060
@ DeveloperApi
1060
1061
protected [sql] class QueryExecution (val logical : LogicalPlan ) {
1061
1062
1062
- lazy val analyzed : LogicalPlan = ExtractPythonUdfs ( analyzer(logical) )
1063
+ lazy val analyzed : LogicalPlan = analyzer(logical)
1063
1064
lazy val withCachedData : LogicalPlan = cacheManager.useCachedData(analyzed)
1064
1065
lazy val optimizedPlan : LogicalPlan = optimizer(withCachedData)
1065
1066
Original file line number Diff line number Diff line change @@ -205,6 +205,9 @@ case class EvaluatePython(
205
205
extends logical.UnaryNode {
206
206
207
207
def output = child.output :+ resultAttribute
208
+
209
+ // References should not include the produced attribute.
210
+ override def references = udf.references
208
211
}
209
212
210
213
/**
You can’t perform that action at this time.
0 commit comments