I have the following data as input in kafka_consumer:
time Mode
2020-01-22T10:50:04.623699901Z ABC
2020-01-22T10:50:22.344965434Z ABC
2020-01-22T10:50:42.148796899Z ABC
2020-01-22T10:51:01.840920723Z PQR
2020-01-22T10:51:22.516903602Z PQR
2020-01-22T11:13:34.453262122Z PQR
2020-01-22T11:13:34.453309721Z ABC
I am expecting the query to give the following output:
start_time end_time Mode
2020-01-22T10:50:04.623699901Z 2020-01-22T10:50:42.148796899Z ABC
2020-01-22T10:51:01.840920723Z 2020-01-22T11:13:34.453262122Z PQR
2020-01-22T11:13:34.453309721Z 2020-01-22T11:13:34.453309721Z ABC
I want to write a select query using InfluxQL which can give me the above output. Could you please help?