You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takeshi Yamamuro (Jira)" <ji...@apache.org> on 2019/12/29 00:50:00 UTC
[jira] [Updated] (SPARK-29390) Add the justify_days(),
justify_hours() and justify_interval() functions
[ https://issues.apache.org/jira/browse/SPARK-29390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Takeshi Yamamuro updated SPARK-29390:
-------------------------------------
Parent Issue: SPARK-30375 (was: SPARK-27764)
> Add the justify_days(), justify_hours() and justify_interval() functions
> ---------------------------------------------------------------------------
>
> Key: SPARK-29390
> URL: https://issues.apache.org/jira/browse/SPARK-29390
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Maxim Gekk
> Assignee: Kent Yao
> Priority: Major
> Fix For: 3.0.0
>
>
> See *Table 9.31. Date/Time Functions* ([https://www.postgresql.org/docs/12/functions-datetime.html)]
> |{{justify_days(}}{{interval}}{{)}}|{{interval}}|Adjust interval so 30-day time periods are represented as months|{{justify_days(interval '35 days')}}|{{1 mon 5 days}}|
> | {{justify_hours(}}{{interval}}{{)}}|{{interval}}|Adjust interval so 24-hour time periods are represented as days|{{justify_hours(interval '27 hours')}}|{{1 day 03:00:00}}|
> | {{justify_interval(}}{{interval}}{{)}}|{{interval}}|Adjust interval using {{justify_days}} and {{justify_hours}}, with additional sign adjustments|{{justify_interval(interval '1 mon -1 hour')}}|{{29 days 23:00:00}}|
--
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