Marco Gaido created SPARK-22750: ----------------------------------- Summary: Introduce reusable mutable states Key: SPARK-22750 URL: https://issues.apache.org/jira/browse/SPARK-22750 Project: Spark Issue Type: Sub-task Components: SQL Affects Versions: 2.3.0 Reporter: Marco Gaido
In code generation, adding many mutable states can be dangerous since we can hit the constant pool limit. In the current code, each expression generates its own copy of mutable states and mutable states cannot be shared across different expression. There are many cases, though, in which this can be done and it can be useful. For instance, we create a UTC timezone object for each date function which requires it, even though we might reuse always the same. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org