[ 
https://issues.apache.org/jira/browse/FLINK-10583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16703255#comment-16703255
 ] 

ASF GitHub Bot commented on FLINK-10583:
----------------------------------------

pnowojski commented on a change in pull request #6871: 
[FLINK-10583][FLINK-10584][table] Add State Retention to temporal joins.
URL: https://github.com/apache/flink/pull/6871#discussion_r237484681
 
 

 ##########
 File path: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/join/TemporalRowtimeJoin.scala
 ##########
 @@ -175,6 +166,13 @@ class TemporalRowtimeJoin(
     if (lastUnprocessedTime < Long.MaxValue) {
       registerTimer(lastUnprocessedTime)
     }
+
+    // if we have more state at any side, then update the timer, else clean it 
up.
 
 Review comment:
   I think we shouldn't execute this if `!stateCleaningEnabled`. Calling 
`rightState.iterator().hasNext` might not be for free and maybe sometimes can 
be quite costly.
   
   Alternatively you could modify `cleanUpState` to return whether the state is 
empty or not, but it would be more complicate since `emitResultAndCleanUpState` 
already returns something.

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


> Add support for state retention to the Processing Time versioned joins.
> -----------------------------------------------------------------------
>
>                 Key: FLINK-10583
>                 URL: https://issues.apache.org/jira/browse/FLINK-10583
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API &amp; SQL
>    Affects Versions: 1.7.0
>            Reporter: Kostas Kloudas
>            Assignee: Kostas Kloudas
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.8.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to