realdengziqi commented on a change in pull request #18982:
URL: https://github.com/apache/flink/pull/18982#discussion_r829229125
##########
File path:
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/TimeWindow.java
##########
@@ -220,7 +220,13 @@ public TimeWindowSerializerSnapshot() {
* @return window start
*/
public static long getWindowStartWithOffset(long timestamp, long offset,
long windowSize) {
- return timestamp - (timestamp - offset + windowSize) % windowSize;
+ long remainder = (timestamp - offset) % windowSize;
Review comment:
Thanks for reviewing this code. I guess it involves reorganizing the
code, which maybe too much for this pr. If necessary, we are willing to start a
new jira and pr to deal with this problem. And looking forward the next
pleasure cooperation with you.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]