maropu commented on issue #25280: [SPARK-28548][SQL] explain() shows wrong 
result for persisted DataFrames after some operations
URL: https://github.com/apache/spark/pull/25280#issuecomment-516201326
 
 
   We cannot just return a new Dataset in persist, btw, like this?
   ```
   val df = spark.range(10)
   df.explain // show query plan without cache
   df.collect // execution without cache
   
   val cachedDf = df.persist
   
   df.explain // show query plan without cache
   df.collect // execution without cache
   
   cachedDf.explain // show query plan with cache
   cachedDf.collect // execution with cache
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to