You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ahmed Hussein (Jira)" <ji...@apache.org> on 2023/04/13 19:44:00 UTC

[jira] [Created] (SPARK-43131) Add labels to identify UDF

Ahmed Hussein created SPARK-43131:
-------------------------------------

             Summary: Add labels to identify UDF 
                 Key: SPARK-43131
                 URL: https://issues.apache.org/jira/browse/SPARK-43131
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.2.0
            Reporter: Ahmed Hussein


I wish there is a convenient way to report the UDFs executed by spark application. This is a useful information to analyze the performance and possible optimizations.

Given an application eventlog, I'm not seeing anything in the plans that can easily identify UDFs.


I see that SPARK-34388  added "source" to the expressionInfo, but this extra-info is not propagated to the "explain" or the eventlog.
I suggest that UDF shows in the eventlog as something like 


{code:scala}
explain sql("SELECT myUdf1(myUdf2(1))"))
myUdf1#scalaUDF(myUdf2#scalaUDF(1))
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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