You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2023/03/30 23:50:47 UTC

[GitHub] [spark] HyukjinKwon commented on a diff in pull request #40608: [SPARK-35198][CORE][PYTHON][SQL] Add support for calling debugCodegen from Python & Java

HyukjinKwon commented on code in PR #40608:
URL: https://github.com/apache/spark/pull/40608#discussion_r1153890797


##########
python/pyspark/sql/dataframe.py:
##########
@@ -706,6 +706,25 @@ def explain(
         assert self._sc._jvm is not None
         print(self._sc._jvm.PythonSQLUtils.explainString(self._jdf.queryExecution(), explain_mode))
 
+    def debugCodegen(self) -> None:
+        """For debugging purposes, prints to stdout all the generated code found
+        in this :class:`DataFrame` plan (i.e., the output of each WholeStageCodegen subtree).
+
+        .. versionadded:: 3.4.0

Review Comment:
   Should be 3.5.0



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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