flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aljoscha Krettek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-4282) Add Offset Parameter to WindowAssigners
Date Sat, 13 Aug 2016 15:25:20 GMT

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

Aljoscha Krettek commented on FLINK-4282:

Hi [~RenkaiGe],
I was wondering about that as well but couldn't come up with a case where that would happen.
Could you maybe given an example?

Due to the nature of mod I think we can still get away with only one mod, like this: 
public static long getWindowStartWithOffset(long timestamp, long offset, long windowSize)
    return timestamp - (timestamp - offset + windowSize) % windowSize;

What do you think?

> Add Offset Parameter to WindowAssigners
> ---------------------------------------
>                 Key: FLINK-4282
>                 URL: https://issues.apache.org/jira/browse/FLINK-4282
>             Project: Flink
>          Issue Type: Improvement
>          Components: Streaming
>            Reporter: Aljoscha Krettek
> Currently, windows are always aligned to EPOCH, which basically means days are aligned
with GMT. This is somewhat problematic for people living in different timezones.
> And offset parameter would allow to adapt the window assigner to the timezone.

This message was sent by Atlassian JIRA

View raw message