[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access to Kafka Event Time

Any feedbaxk?

On Tue, Jul 31, 2018, 10:20 AM Vishal Santoshi <vishal.santoshi@xxxxxxxxx> wrote:
In fact it may be available else where too ( for example ProcessFunction etc ) but do we have no need to create one, it is just a data relay ( kafka to hdfs ) and any intermediate processing should be avoided if possible IMHO.

On Tue, Jul 31, 2018 at 9:10 AM, Vishal Santoshi <vishal.santoshi@xxxxxxxxx> wrote:
We have a use case where multiple topics are streamed to hdfsand we would want to created buckets based on ingestion time ( the time the event were pushed to kafka ). Our producers to kafka will set that the event time

suggests that the the "previousElementTimeStamp" will provide that timestamp provided "EventTime" characteristic is set. It also provides for the element. In out case the element will expose setIngestionTIme(long time) method. Is the element in this method
public long extractTimestamp(Long element, long previousElementTimestamp)
 passed by reference and can it be safely ( loss lessly ) mutated for downstream operators ?

That said there is another place where that record time stamp is available.

Is it possible to change the signature of the 

to add record timestamp as the last argument ?