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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to