yma11 opened a new pull request, #5772:
URL: https://github.com/apache/incubator-gluten/pull/5772

   ## What changes were proposed in this pull request?
   
   Add metric for ColumnarArrowEvalPythonExec
   
   (Fixes: \#5771)
   
   ## How was this patch tested?
   
   We tested performance of arrow udf and collected some performance:
   ```
   from pyspark.sql.functions import pandas_udf, PandasUDFType
   import pyspark.sql.functions as F
   import os
   @pandas_udf('long')
   def pandas_plus_one(v):
       return (v + 1)
   
   @pandas_udf('string')
   def pd_get_first(v):
       return v.str.split(':').str[1]
   # test int
   df = 
spark.read.orc("file:///xx/yy").select("user_id").withColumn("processed_user_id",
 pandas_plus_one("user_id")).select("processed_user_id")
   # test string
   df = 
spark.read.orc("file:///xx/yy").select("url").withColumn("processed_url", 
pd_get_first("url")).select("processed_url")
   ```
   
   The perf shows ~20% perf gain compared with vanilla spark.
   
   <img width="299" alt="image" 
src="https://github.com/apache/incubator-gluten/assets/11849056/145903a7-c0df-492a-8ce9-4fb0b3c429e8";>
   
   


-- 
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: commits-unsubscr...@gluten.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@gluten.apache.org
For additional commands, e-mail: commits-h...@gluten.apache.org

Reply via email to