@@ -115,7 +115,7 @@ private[sql] object DataFrame {
115115@ Experimental
116116class DataFrame private [sql](
117117 @ transient val sqlContext : SQLContext ,
118- @ DeveloperApi @ transient var queryExecution : SQLContext # QueryExecution )
118+ @ DeveloperApi @ transient private var _queryExecution : SQLContext # QueryExecution )
119119 extends RDDApi [Row ] with Serializable {
120120
121121 /**
@@ -134,6 +134,8 @@ class DataFrame private[sql](
134134 })
135135 }
136136
137+ @ DeveloperApi def queryExecution : SQLContext # QueryExecution = _queryExecution
138+
137139 @ transient protected [sql] val logicalPlan : LogicalPlan = queryExecution.logical match {
138140 // For various commands (like DDL) and queries with side effects, we force query optimization to
139141 // happen right away to let these side effects take place eagerly.
@@ -1317,7 +1319,7 @@ class DataFrame private[sql](
13171319 */
13181320 override def persist (newLevel : StorageLevel ): this .type = {
13191321 sqlContext.cacheManager.cacheQuery(this , None , newLevel)
1320- this .queryExecution = new sqlContext.QueryExecution (this .queryExecution.logical)
1322+ this ._queryExecution = new sqlContext.QueryExecution (this .queryExecution.logical)
13211323 this
13221324 }
13231325
@@ -1327,7 +1329,7 @@ class DataFrame private[sql](
13271329 */
13281330 override def unpersist (blocking : Boolean ): this .type = {
13291331 sqlContext.cacheManager.tryUncacheQuery(this , blocking)
1330- this .queryExecution = new sqlContext.QueryExecution (this .queryExecution.logical)
1332+ this ._queryExecution = new sqlContext.QueryExecution (this .queryExecution.logical)
13311333 this
13321334 }
13331335
0 commit comments