You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2021/07/08 08:11:00 UTC
[jira] [Commented] (FLINK-23305) Support semi/anti interval joins
[ https://issues.apache.org/jira/browse/FLINK-23305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17377193#comment-17377193 ]
Timo Walther commented on FLINK-23305:
--------------------------------------
CC [~jark] Semantically the query should be correct, no?
> Support semi/anti interval joins
> --------------------------------
>
> Key: FLINK-23305
> URL: https://issues.apache.org/jira/browse/FLINK-23305
> Project: Flink
> Issue Type: New Feature
> Components: Table SQL / Planner
> Reporter: Timo Walther
> Priority: Major
>
> I don't see a reason why we shouldn't support interval joins also for semi/anti joins like:
> {code}
> SELECT *
> FROM OT
> WHERE EXISTS (
> SELECT *
> FROM TT
> WHERE TT.tx = OT.tx AND
> TT.isEnd = TRUE AND
> TT.rowtime BETWEEN OT.rowtime AND OT.rowtime + INTERVAL '1' HOUR)
> {code}
> The resulting plan contains a join operation anyway but without detecting the interval.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)