flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Lin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-10680) Unable to set negative offsets for TumblingEventTimeWindow
Date Fri, 26 Oct 2018 02:27:00 GMT

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

Paul Lin commented on FLINK-10680:

[~hequn8128] Thanks for the pointer. I looked into the commit logs and found this parameter
check is added in a refactoring of tests [FLINK-4994|https://issues.apache.org/jira/browse/FLINK-4994]
which has no description of the offset API changes, so I think it is more likely to be a bug
rather than an expected change.

> Unable to set negative offsets for TumblingEventTimeWindow
> ----------------------------------------------------------
>                 Key: FLINK-10680
>                 URL: https://issues.apache.org/jira/browse/FLINK-10680
>             Project: Flink
>          Issue Type: Bug
>          Components: DataStream API
>    Affects Versions: 1.6.1
>            Reporter: Paul Lin
>            Priority: Major
> The following code given in documentation throws an IllegalArgumentException: TumblingEventTimeWindows
parameters must satisfy 0 <= offset < size.
> > TumblingEventTimeWindows.of(Time.days(1), Time.hours(-8));
> By design, the offset could be negative to fit in different time zones.

This message was sent by Atlassian JIRA

View raw message