[
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: [email protected]
For additional commands, e-mail: [email protected]