Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-15792

[SQL] Allows operator to change the verbosity in explain output.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      We should allows an operator (Physical plan or logical plan) to change verbosity in explain output.

      For example, we may not want to display output=count(a)#48L in less-verbose mode.

      scala> spark.sql("select count(a) from df").explain()
      
      == Physical Plan ==
      *HashAggregate(key=[], functions=[count(1)], output=[count(a)#48L])
      +- Exchange SinglePartition
         +- *HashAggregate(key=[], functions=[partial_count(1)], output=[count#50L])
            +- LocalTableScan
      

      Attachments

        Activity

          People

            clockfly Sean Zhong
            clockfly Sean Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: