spark-instrumented-optimizer/python/pyspark/sql
Cheng Lian 6e1c55eac4 [SPARK-12012][SQL] Show more comprehensive PhysicalRDD metadata when visualizing SQL query plan
This PR adds a `private[sql]` method `metadata` to `SparkPlan`, which can be used to describe detail information about a physical plan during visualization. Specifically, this PR uses this method to provide details of `PhysicalRDD`s translated from a data source relation. For example, a `ParquetRelation` converted from Hive metastore table `default.psrc` is now shown as the following screenshot:

![image](https://cloud.githubusercontent.com/assets/230655/11526657/e10cb7e6-9916-11e5-9afa-f108932ec890.png)

And here is the screenshot for a regular `ParquetRelation` (not converted from Hive metastore table) loaded from a really long path:

![output](https://cloud.githubusercontent.com/assets/230655/11680582/37c66460-9e94-11e5-8f50-842db5309d5a.png)

Author: Cheng Lian <lian@databricks.com>

Closes #10004 from liancheng/spark-12012.physical-rdd-metadata.
2015-12-09 23:30:42 +08:00
..
__init__.py [SPARK-10373] [PYSPARK] move @since into pyspark from sql 2015-09-08 20:56:22 -07:00
column.py [SPARK-11836][SQL] udf/cast should not create new SQLContext 2015-11-23 13:44:30 -08:00
context.py [SPARK-11917][PYSPARK] Add SQLContext#dropTempTable to PySpark 2015-11-26 19:15:22 -08:00
dataframe.py [SPARK-12012][SQL] Show more comprehensive PhysicalRDD metadata when visualizing SQL query plan 2015-12-09 23:30:42 +08:00
functions.py [SPARK-11980][SPARK-10621][SQL] Fix json_tuple and add test cases for 2015-11-25 23:24:33 -08:00
group.py [SPARK-12184][PYTHON] Make python api doc for pivot consistant with scala doc 2015-12-07 15:01:00 -08:00
readwriter.py [SPARK-11967][SQL] Consistent use of varargs for multiple paths in DataFrameReader 2015-11-24 18:16:07 -08:00
tests.py [SPARK-9830][SQL] Remove AggregateExpression1 and Aggregate Operator used to evaluate AggregateExpression1s 2015-11-10 11:06:29 -08:00
types.py [SPARK-11158][SQL] Modified _verify_type() to be more informative on Errors by presenting the Object 2015-10-18 11:39:19 -07:00
utils.py [SPARK-11804] [PYSPARK] Exception raise when using Jdbc predicates opt… 2015-11-18 08:18:54 -08:00
window.py [SPARK-10373] [PYSPARK] move @since into pyspark from sql 2015-09-08 20:56:22 -07:00