You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "JacobZheng (Jira)" <ji...@apache.org> on 2021/09/30 09:38:00 UTC

[jira] [Created] (SPARK-36903) oom exception occurred during code generation due to a large number of case when branches

JacobZheng created SPARK-36903:
----------------------------------

             Summary: oom exception occurred during code generation due to a large number of case when branches
                 Key: SPARK-36903
                 URL: https://issues.apache.org/jira/browse/SPARK-36903
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core
    Affects Versions: 3.0.1
            Reporter: JacobZheng


I have a spark task that contains many case when branches. When I run it, the driver throws an oom exception in the codegen phase. What I expect is if it is possible to detect or limit it in the codegen phase to avoid this.

 

I see that spark 2.2 has a configuration item spark.sql.codegen.maxCaseBranches. would it help my situation if I try to add this limit back?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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