You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2019/02/20 14:57:00 UTC
[jira] [Resolved] (SPARK-26900) Simplify truncation to quarter of
year
[ https://issues.apache.org/jira/browse/SPARK-26900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-26900.
-------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
Issue resolved by pull request 23808
[https://github.com/apache/spark/pull/23808]
> Simplify truncation to quarter of year
> --------------------------------------
>
> Key: SPARK-26900
> URL: https://issues.apache.org/jira/browse/SPARK-26900
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.4.0
> Reporter: Maxim Gekk
> Assignee: Maxim Gekk
> Priority: Minor
> Fix For: 3.0.0
>
>
> Currently, truncation a timestamp to quarter of year is performed via truncation to month and separate quarter calculation. This can be done by directly truncating local date to quarter:
> {code:java}
> LocalDate firstDayOfQuarter = date.with(IsoFields.DAY_OF_QUARTER, 1L);
> {code}
--
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