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

Hyukjin Kwon commented on SPARK-36903:
--------------------------------------

Yes, can you try and see if it works? 

> 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
>            Priority: Major
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to