Controlling event time
This describes how to control event time for data in your Kafka topics with Lenses SQL Processors.
Setting up our example
CREATE TABLE electricity_events(
KW double
, customer_id int
, event_time long
)
FORMAT (string, avro);INSERT INTO electricity_events(
KW
, customer_id
, event_time
) VALUES
(1.0, 1, 1592848400000),
(2.0, 2, 1592848400000),
(1.5, 3, 1592848400000),
(2.0, 1, 1592848405000),
(1.0, 2, 1592848405000),
(2.5, 3, 1592848405000),
(3.0, 1, 1592848410000),
(0.5, 2, 1592848410000),
(4.0, 3, 1592848405000)
;Computing moving averages
Last updated
Was this helpful?

