Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4219

Permit setting of event time in stream processor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0.1
    • 2.0.0
    • streams

    Description

      Event time is assigned in stream sources via TimestampExtractor. Once the event time has been assigned, it remains the same, regardless of any downstream processing in the topology. This is insufficient for many processing jobs, particularly when the output of the job is written back into a Kafka topic, where the record's time is encoded outside of the record's value.

      For instance:

      • When performing windowed aggregations it may be desirable for the timestamp of the emitted record to be lower or higher limits of the time window, rather than the timestamp of the last processed element, which may be anywhere within the time window.
      • When joining two streams, it is non-deterministic which of the two record's timestamps will be the timestamp of the emitted record. It would be either one depending on what order the records are processed. Even where this deterministic, it may be desirable for the emitted timestamp to be altogether different from the timestamp of the joined records. For instance, setting the timestamp to the current processing time may be desirable.
      • In general, lower level processors may wish to set the timestamp of emitted records to an arbitrary value.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elevy Elias Levy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: