[
https://issues.apache.org/jira/browse/FLINK-3580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15509873#comment-15509873
]
ASF GitHub Bot commented on FLINK-3580:
---------------------------------------
Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/2468#discussion_r79824752
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/scala/table/expressionDsl.scala
---
@@ -472,5 +472,30 @@ object localTimestamp {
}
}
+/**
+ * Determines whether two anchored time intervals overlap.
+ *
+ * It evaluates: leftTemporal >= rightTimePoint && rightTemporal >=
leftTimePoint
+ *
+ * e.g. temporalOverlaps("2:55:00".toTime, 1.hour, "3:30:00".toTime,
2.hour) leads to true
+ */
+object temporalOverlaps {
+
+ /**
+ * Determines whether two anchored time intervals overlap.
+ *
+ * It evaluates: leftTemporal >= rightTimePoint && rightTemporal >=
leftTimePoint
--- End diff --
Rephrase condition
> Reintroduce Date/Time and implement scalar functions for it
> -----------------------------------------------------------
>
> Key: FLINK-3580
> URL: https://issues.apache.org/jira/browse/FLINK-3580
> Project: Flink
> Issue Type: Sub-task
> Components: Table API & SQL
> Reporter: Timo Walther
> Assignee: Timo Walther
>
> This task includes:
> {code}
> DATETIME_PLUS
> EXTRACT_DATE
> FLOOR
> CEIL
> CURRENT_TIME
> CURRENT_TIMESTAMP
> LOCALTIME
> LOCALTIMESTAMP
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)