You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/20 22:00:02 UTC

[GitHub] [spark] hvanhovell edited a comment on issue #24464: [SPARK-27439][SQL] Explainging Dataset should show correct resolved plans

hvanhovell edited a comment on issue #24464: [SPARK-27439][SQL] Explainging Dataset should show correct resolved plans
URL: https://github.com/apache/spark/pull/24464#issuecomment-494165538
 
 
   @viirya can we just fix this by doing the following:
   ```scala
   def explain(extended: Boolean): Unit = {
     val outputString =
        if (extended) {
          queryExecution.toString
        } else {
          queryExecution.simpleString
        }
     // scalastyle:off println
     println(outputString)
     // scalastyle:on println
   }
   ```
   That seems a lot simpler, and it does not trigger full analysis and optimization from the parser.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org