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/19 08:38:05 UTC

[jira] [Commented] (SPARK-9177) Reuse Calendar instance in WeekOfYear

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

Reynold Xin commented on SPARK-9177:
------------------------------------

cc [~TarekAuel] can you do this one, as a follow up to your own PR?


> 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
>
> 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