You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/07/20 18:42:04 UTC
[jira] [Resolved] (SPARK-9177) Reuse Calendar instance in
WeekOfYear
[ https://issues.apache.org/jira/browse/SPARK-9177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin resolved SPARK-9177.
--------------------------------
Resolution: Fixed
Assignee: Tarek Auel
Fix Version/s: 1.5.0
> Reuse Calendar instance in WeekOfYear
> -------------------------------------
>
> Key: SPARK-9177
> URL: https://issues.apache.org/jira/browse/SPARK-9177
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Reporter: Reynold Xin
> Assignee: Tarek Auel
> Fix For: 1.5.0
>
>
> Right now WeekOfYear creates a new Calendar instance for every record, both in code gen and in interpreted mode. We should just reuse the same Calendar instance (i.e. initialize it as a member variable in interpreted mode, and use mutable state in codegen mode).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org