You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:15:23 UTC

[jira] [Resolved] (SPARK-22215) Add a configuration parameter to set max size for generated classes

     [ https://issues.apache.org/jira/browse/SPARK-22215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-22215.
----------------------------------
    Resolution: Incomplete

> Add a configuration parameter to set max size for generated classes
> -------------------------------------------------------------------
>
>                 Key: SPARK-22215
>                 URL: https://issues.apache.org/jira/browse/SPARK-22215
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Marco Gaido
>            Priority: Major
>              Labels: bulk-closed
>
> SPARK-18016 introduced an arbitrary threshold for the size of a generated class (https://github.com/apache/spark/blob/83488cc3180ca18f829516f550766efb3095881e/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala#L286). This value is hardcoded.
> Since this is just a guess, in some cases making it smaller can help avoiding the error of exceeding the maximum number of entries in the Constant Pool.
> Then, I suggest to introduce a new configuration parameter, which defaults to the previous value, but it allows to set this to a smaller one if needed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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