maropu commented on issue #26702: [SPARK-30070][SQL] Support ANSI datetimes 
predicate - overlaps
URL: https://github.com/apache/spark/pull/26702#issuecomment-559651145
 
 
   I'm not faimilar with this syntax though, to regard the range as `[lower, 
upper)` is the same among them? Which the description below does come from, the 
pg doc or the SQL definition?
   ```
    /**
    * The operator `OVERLAPS` determines whether or not two chronological 
periods overlap in time. A
    * chronological period is specified by a pair of datetimes (starting and 
ending) or as a
    * starting datetime and an interval(resolved by analyzer to datetimes pairs 
early).
    *
    * If the length of the period is greater than 0, then the period consists 
of all points of time
    * greater than or equal to the lower endpoint, and less than the upper 
endpoint,
    * a.k.a [lower, upper).
    *
    * If the length of the period is equal to 0, then the period consists of a 
single point in time,
    * the lower endpoint, a.k.a [lower, lower].
    *
    * Two periods overlap if they have at least one point in common.
    *
    */
   ```

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