yaooqinn commented on issue #26702: [SPARK-30070][SQL] Support ANSI datetimes 
predicate - overlaps
URL: https://github.com/apache/spark/pull/26702#issuecomment-559652203
 
 
    The comments above are based on the SQL Standard.
   Here is the pg's description
   > This expression yields true when two time periods (defined by their 
endpoints) overlap, false when they do not overlap. The endpoints can be 
specified as pairs of dates, times, or time stamps; or as a date, time, or time 
stamp followed by an interval. When a pair of values is provided, either the 
start or the end can be written first; OVERLAPS automatically takes the earlier 
value of the pair as the start. Each time period is considered to represent the 
**half-open interval start <= time < end**, unless start and end are equal in 
which case it represents that single time instant. This means for instance that 
two time periods with only an endpoint in common do not overlap.
   from link:
   https://www.postgresql.org/docs/current/functions-datetime.html

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to