Sean G
05/24/2024, 6:21 PM__time Device ID interface-name bytes-sent bytes-received Delta Bytes Sent Delta Bytes Rcvd
2024-05-24T18:05:23.120Z <device-1> <dev1-interface-A> 130978575677 8420959997 889758 60650
2024-05-24T18:05:23.120Z <device-2> <dev2-interface-B> 2945859418 3074108147129 5310 6747698
2024-05-24T18:04:23.052Z <device-1> <dev1-interface-A> 130977685919 8420899347 356143 28719
2024-05-24T18:04:23.052Z <device-2> <dev2-interface-B> 2945854108 3074101399431 5246 6830232
2024-05-24T18:03:23.065Z <device-1> <dev1-interface-A> 130977329776 8420870628 356465 31700
2024-05-24T18:03:23.065Z <device-2> <dev2-interface-B> 2945848862 3074094569199 5182 6676525
2024-05-24T18:02:23.088Z <device-1> <dev1-interface-A> 130976973311 8420838928 357472 29460
2024-05-24T18:02:23.088Z <device-2> <dev2-interface-B> 2945843680 3074087892674 5310 6774756
2024-05-24T18:01:23.062Z <device-1> <dev1-interface-A> 130976615839 8420809468
2024-05-24T18:01:23.062Z <device-2> <dev2-interface-B> 2945838370 3074081117918
The first 5 columns are part of the data set we consume and the last 2 columns are the ones I want to calculate on ingestion or via a query. We are running Druid 28.0.1 and the data is being pulled in as JSON messages on a Kafka topic
Any help will be appreciated :)Benjamin Hopp
05/25/2024, 3:15 PMSean G
05/27/2024, 12:31 PMprevious_row.__time == (current_row.time - 1 minute) &&
previous_row.deviceID == current_row.deviceID &&
previous_row.interface-name == current_row.interface-name
but I do not see a way to query previous rows using only expressionsBenjamin Hopp
05/27/2024, 1:24 PMSean G
05/27/2024, 1:26 PMBenjamin Hopp
05/27/2024, 2:50 PM