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

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

oh wait that configuration is removed by optimization later in Spark 2.3 
(SPARK-22520). Can you try if you still face the same issue in Spark 3.1 too? 
Otherwise, you would better have to show self-contained reproducer with error 
message.

> 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