Home > Enterprise >  Show physical plan in PySpark
Show physical plan in PySpark

Time:11-05

When you make a mistake, like selecting a column that doesn't exist, in PySpark's exception message you can see something like this on the bottom:

action data tree

Is it possible to show this tree normally in PySpark? (without having to cause an exception)

CodePudding user response:

what you are looking at the physical plan. use the explain on your sql or dataframe to see that output. find more information on following link

https://spark.apache.org/docs/latest/sql-ref-syntax-qry-explain.html

  • Related