spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Gekk (Jira)" <j...@apache.org>
Subject [jira] [Created] (SPARK-29390) Add the justify_days(), justify_hours() and justify_interval() functions
Date Tue, 08 Oct 2019 10:53:00 GMT
Maxim Gekk created SPARK-29390:
----------------------------------

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


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


Mime
View raw message