I'm working with the Python API and have a question about event timestamps. I'm trying to window based on event time. Events are coming from a Kafka source but I'd like to use a field from the JSON payload as event time.
It's my understanding that I should provide an implementation of TimestampAssigner for this purpose and implement the extract_timestamp method. Question is, what data type or datetime format should that method return?