Hello everyone, I'm consuming from a Kafka topic, on which I'm writing with a FlinkKafkaProducer, with the timestamp relative flag set to true. I thought that it would be possible to use the already existent
AscendingTimestampExtractor, overriding the extractTimestamp method, but it's marked final. new FlinkKafkaConsumer010[Event](ingestion_topic, new JSONDeserializationSchema(), consumerConfig)Should I need to implement my own TimestampExtractor (with the appropriate getCurrentWatermark and extractTimestamp methods) ? [1] https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/connectors/kafka.html#using-kafka-timestamps-and-flink-event-time-in-kafka-010 |
Hi,
This is a know issue: https://issues.apache.org/jira/browse/FLINK-8500. And yes, the workaround is to write an assigner from scratch but you can start by copying the code of AscendingTimestampExtractor. Sorry for the inconvenience. -- Aljoscha
|
Thank you very much Aljoscha! 2018-02-23 14:45 GMT+01:00 Aljoscha Krettek <[hidden email]>:
-- Federico D'Ambrosio
|
Free forum by Nabble | Edit this page |