[jira] [Commented] (FLINK-9600) Add DataStream transformation variants that pass timestamp to the user function

2021-04-22 Thread Flink Jira Bot (Jira)


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

Flink Jira Bot commented on FLINK-9600:
---

This issue has been labeled "stale-minor" for 7 days. It is closed now. If you 
are still affected by this or would like to raise the priority of this ticket 
please re-open, removing the label "auto-closed" and raise the ticket priority 
accordingly.

> Add DataStream transformation variants that pass timestamp to the user 
> function
> ---
>
> Key: FLINK-9600
> URL: https://issues.apache.org/jira/browse/FLINK-9600
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream
>Affects Versions: 1.5.0
>Reporter: Elias Levy
>Priority: Minor
>  Labels: stale-minor
>
> It is often necessary to access the timestamp assigned to records within user 
> functions.  At the moment this is only possible from {{RichFunction}}. 
> Implementing a {{RichFunction}} just to access the timestamp is burdensome, 
> so most job carry a duplicate of the timestamp within the record.
> It would be useful if {{DataStream}} provided transformation methods that 
> accepted user functions that could be passed the record's timestamp as an 
> additional argument, similar to how there are two variants of {{flatMap}}, 
> one with an extra parameter that gives the user function access to the output 
> {{Collector}}.
> Along similar lines, it may be useful to have variants that pass the record's 
> key as an additional parameter.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-9600) Add DataStream transformation variants that pass timestamp to the user function

2021-04-14 Thread Flink Jira Bot (Jira)


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

Flink Jira Bot commented on FLINK-9600:
---

This issue and all of its Sub-Tasks have not been updated for 180 days. So, it 
has been labeled "stale-minor". If you are still affected by this bug or are 
still interested in this issue, please give an update and remove the label. In 
7 days the issue will be closed automatically.

> Add DataStream transformation variants that pass timestamp to the user 
> function
> ---
>
> Key: FLINK-9600
> URL: https://issues.apache.org/jira/browse/FLINK-9600
> Project: Flink
>  Issue Type: Improvement
>  Components: API / DataStream
>Affects Versions: 1.5.0
>Reporter: Elias Levy
>Priority: Minor
>  Labels: stale-minor
>
> It is often necessary to access the timestamp assigned to records within user 
> functions.  At the moment this is only possible from {{RichFunction}}. 
> Implementing a {{RichFunction}} just to access the timestamp is burdensome, 
> so most job carry a duplicate of the timestamp within the record.
> It would be useful if {{DataStream}} provided transformation methods that 
> accepted user functions that could be passed the record's timestamp as an 
> additional argument, similar to how there are two variants of {{flatMap}}, 
> one with an extra parameter that gives the user function access to the output 
> {{Collector}}.
> Along similar lines, it may be useful to have variants that pass the record's 
> key as an additional parameter.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FLINK-9600) Add DataStream transformation variants that pass timestamp to the user function

2018-08-03 Thread Elias Levy (JIRA)


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

Elias Levy commented on FLINK-9600:
---

[~aljoscha] I am aware of {{ProcessFunction}}, but I consider it an escape 
hatch when you can't perform what you want within the higher level DSL.  The 
improvement I am suggestion is within the higher level DSL.

E.g.it is a lot nicer to write:
{code:java}
dataStream.filter( (x, ts) => { isDayTime(ts) } )
{code}
than
{code:java}
class ProcessFilter extends ProcessFunction[T,T] {
  override def processElement(value: T, ctx: Context, out: Collector[T]): Unit 
={
if (isDayTime(ctx.timestamp))
  out.collect(value) }
  }
} 
dataStream.process(new ProcessFilter())
{code}
 

> Add DataStream transformation variants that pass timestamp to the user 
> function
> ---
>
> Key: FLINK-9600
> URL: https://issues.apache.org/jira/browse/FLINK-9600
> Project: Flink
>  Issue Type: Improvement
>  Components: Streaming
>Affects Versions: 1.5.0
>Reporter: Elias Levy
>Priority: Minor
>
> It is often necessary to access the timestamp assigned to records within user 
> functions.  At the moment this is only possible from {{RichFunction}}. 
> Implementing a {{RichFunction}} just to access the timestamp is burdensome, 
> so most job carry a duplicate of the timestamp within the record.
> It would be useful if {{DataStream}} provided transformation methods that 
> accepted user functions that could be passed the record's timestamp as an 
> additional argument, similar to how there are two variants of {{flatMap}}, 
> one with an extra parameter that gives the user function access to the output 
> {{Collector}}.
> Along similar lines, it may be useful to have variants that pass the record's 
> key as an additional parameter.
>  



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


[jira] [Commented] (FLINK-9600) Add DataStream transformation variants that pass timestamp to the user function

2018-07-12 Thread Aljoscha Krettek (JIRA)


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

Aljoscha Krettek commented on FLINK-9600:
-

Did you have a look at {{ProcessFunction}} and the new additions to 
{{KeyedProcessFunction}} that allow accessing the key of the object both when 
processing a record and when processing a timer? 
https://github.com/apache/flink/blob/cde504eb401441e589b3f295e40db37a005ee6d9/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/KeyedProcessFunction.java#L52

> Add DataStream transformation variants that pass timestamp to the user 
> function
> ---
>
> Key: FLINK-9600
> URL: https://issues.apache.org/jira/browse/FLINK-9600
> Project: Flink
>  Issue Type: Improvement
>  Components: Streaming
>Affects Versions: 1.5.0
>Reporter: Elias Levy
>Priority: Minor
>
> It is often necessary to access the timestamp assigned to records within user 
> functions.  At the moment this is only possible from {{RichFunction}}. 
> Implementing a {{RichFunction}} just to access the timestamp is burdensome, 
> so most job carry a duplicate of the timestamp within the record.
> It would be useful if {{DataStream}} provided transformation methods that 
> accepted user functions that could be passed the record's timestamp as an 
> additional argument, similar to how there are two variants of {{flatMap}}, 
> one with an extra parameter that gives the user function access to the output 
> {{Collector}}.
> Along similar lines, it may be useful to have variants that pass the record's 
> key as an additional parameter.
>  



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