简体   繁体   中英

Is there a way to add timestamp to KSQL stream select?

I have some message processing using ksql streams and I'd like to add timestamp to each processed row, as to retrieve time of finished processing.

Initially I've assumed the ROWTIME would end up getting updated, but it seems that it gets retained from the initial Kafka topic's message.

TIMESTAMP methods seems to be used for converting input data into some specific timestamp.

You can write a new UDF to get the timestamp and add it to the result. For more information on how to write UDFs for KSQL refer to the following page: https://docs.confluent.io/current/ksql/docs/developer-guide/udf.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM