You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "lifulong (Jira)" <ji...@apache.org> on 2025/10/23 08:48:00 UTC

[jira] [Commented] (SPARK-54000) Complex sql with expand operator and code gen enabled, very slow

    [ https://issues.apache.org/jira/browse/SPARK-54000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18032413#comment-18032413 ] 

lifulong commented on SPARK-54000:
----------------------------------

!https://wiki.in.zhihu.com/download/attachments/640447372/image2025-10-2_11-52-55.png?version=1&modificationDate=1759377176124&api=v2!

> Complex sql with expand operator and code gen enabled, very slow
> ----------------------------------------------------------------
>
>                 Key: SPARK-54000
>                 URL: https://issues.apache.org/jira/browse/SPARK-54000
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.5.2
>         Environment: spark sql 3.5.2
>            Reporter: lifulong
>            Priority: Major
>
> Complex sql with expand operator and code gen enabled, very slow
> sql format like select keya,keyb,count(distinct case when),...,count(distinct case when),sum(a),sum(b) from x group by keya,keyb
> when disable whole stage code gen, run will speed up 20x times
> when add executor jvm parameter -XX:-TieredCompilation, run will speed up 20x times
> reduce select column count, such as 28 -> 27, can speed up 10x times



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