Hi Flink users,
Can I ask how to avoid default allowLateness(0) ? so that late events becomes single-element windows as 1.0.3 version acts? Best, Sendoh |
Hi Sendoh, I have used the Custom Trigger which is same as 1.0.3 EventTimeTrigger, and kept the allowedLateness value to Long.MAX_VALUE. Because of this change the late elements are not discarded and become single element windows Regards, Vinay Patil On Mon, Nov 28, 2016 at 5:54 PM, Sendoh [via Apache Flink User Mailing List archive.] <[hidden email]> wrote: Hi Flink users, |
Setting allowedLateness to Long.MAX_VALUE and returning
TriggerResult.FIRE_AND_PURGE in the custom trigger should do the trick. -Max On Mon, Nov 28, 2016 at 2:57 PM, vinay patil <[hidden email]> wrote: > Hi Sendoh, > > I have used the Custom Trigger which is same as 1.0.3 EventTimeTrigger, and > kept the allowedLateness value to Long.MAX_VALUE. > Because of this change the late elements are not discarded and become single > element windows > > Regards, > Vinay Patil > > On Mon, Nov 28, 2016 at 5:54 PM, Sendoh [via Apache Flink User Mailing List > archive.] <[hidden email]> wrote: >> >> Hi Flink users, >> >> Can I ask how to avoid default allowLateness(0) ? so that late events >> becomes single-element windows as 1.0.3 version acts? >> >> Best, >> >> Sendoh >> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/How-to-let-1-1-3-not-drop-late-events-as-verion-1-0-3-does-tp10349.html >> To start a new topic under Apache Flink User Mailing List archive., email >> [hidden email] >> To unsubscribe from Apache Flink User Mailing List archive., click here. >> NAML > > > > ________________________________ > View this message in context: Re: How to let 1.1.3 not drop late events as > verion 1.0.3 does > > Sent from the Apache Flink User Mailing List archive. mailing list archive > at Nabble.com. |
Yes, That's what I have done. IMO flink should allow user to decide whether to discard late data or not by having some flag, because for some cases users cannot afford to loose any data. Regards, Vinay Patil On Tue, Nov 29, 2016 at 3:16 PM, Maximilian Michels [via Apache Flink User Mailing List archive.] <[hidden email]> wrote: Setting allowedLateness to Long.MAX_VALUE and returning |
Yes, but the allowedLateness() setting is that flag, no? On Tue, 29 Nov 2016 at 11:04 vinay patil <[hidden email]> wrote:
|
Hi Aljoscha, Yes that it true, but user who are new to flink does not know how to handle the case where they cannot discard late data, so they end up writing custom trigger which was not the case in 1.0.3 Regards, Vinay Patil On Tue, Nov 29, 2016 at 4:29 PM, Aljoscha Krettek [via Apache Flink User Mailing List archive.] <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |