Skip to content

Commit dd4dec1

Browse files
committed
Use the analyzed plan in DataFrame
1 parent 089c52e commit dd4dec1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class DataFrame private[sql](
136136
})
137137
}
138138

139-
@transient protected[sql] val logicalPlan: LogicalPlan = queryExecution.logical match {
139+
@transient protected[sql] val logicalPlan: LogicalPlan = queryExecution.analyzed match {
140140
// For various commands (like DDL) and queries with side effects, we force query optimization to
141141
// happen right away to let these side effects take place eagerly.
142142
case _: Command |
@@ -146,7 +146,7 @@ class DataFrame private[sql](
146146
_: WriteToFile =>
147147
LogicalRDD(queryExecution.analyzed.output, queryExecution.toRdd)(sqlContext)
148148
case _ =>
149-
queryExecution.logical
149+
queryExecution.analyzed
150150
}
151151

152152
/**

0 commit comments

Comments
 (0)