You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2020/06/03 12:01:00 UTC

[jira] [Resolved] (SPARK-31878) Create date formatter only once in HiveResult

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

Wenchen Fan resolved SPARK-31878.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 28687
[https://github.com/apache/spark/pull/28687]

> Create date formatter only once in HiveResult
> ---------------------------------------------
>
>                 Key: SPARK-31878
>                 URL: https://issues.apache.org/jira/browse/SPARK-31878
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0, 3.1.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Currently, dateFormatter in HiveResult is created per every date value to be sure that catches zone id but this is not necessary because date formatter doesn't depend on any time zone. Time zone is needed only for parsing. So, dateFormatter can be created only once. The ticket aims to changeĀ *def dateFormatter* to *val dateFormatter*.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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