I have this data source in druid:
I'm trying to use LATEST() to return the latest coordinates of each user active in the last minute. My intention is to show their location in realtime using a mapbox chart in superset. This is my query:
SELECT LATEST(latitude), LATEST(longitude), user_id FROM locations
WHERE __time >= CURRENT_TIMESTAMP - INTERVAL '1' minute
GROUP BY user_id
The problem is that LATEST() always return zero. Does anybody know what I'm doing wrong and how to achieve what I want using DRUID SQL?

