cloud-fan commented on issue #27509: [SPARK-30764][SQL] Improve the readability of EXPLAIN FORMATTED style URL: https://github.com/apache/spark/pull/27509#issuecomment-588992515 ``` File "/home/jenkins/workspace/SparkPullRequestBuilder/python/pyspark/sql/dataframe.py", line 282, in pyspark.sql.dataframe.DataFrame.explain Failed example: df.explain(mode="formatted") Differences (ndiff with -expected +actual): == Physical Plan == * Scan ExistingRDD (1) + <BLANKLINE> + <BLANKLINE> (1) Scan ExistingRDD [codegen id : 1] - Output: [age#0, name#1] + Output [2]: [age#0, name#1] ? ++++ + Arguments: [age#0, name#1], MapPartitionsRDD[4] at applySchemaToPythonRDD at NativeMethodAccessorImpl.java:0, ExistingRDD, UnknownPartitioning(0) + <BLANKLINE> + <BLANKLINE> ********************************************************************** 1 of 3 in pyspark.sql.dataframe.DataFrame.explain ***Test Failed*** 1 failures. ``` @Eric5553 can you fix the pyspark test? you should update `dataframe.py` `explain` method ``` >>> df.explain(mode="formatted") == Physical Plan == * Scan ExistingRDD (1) (1) Scan ExistingRDD [codegen id : 1] Output: [age#0, name#1] .. versionchanged:: 3.0.0 Added optional argument `mode` to specify the expected output format of plans. """ ```
---------------------------------------------------------------- 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]
