Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
povconfluent committed Mar 8, 2022
1 parent bdc06cf commit 93b7ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/data/mqtt.ksql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SELECT TIMESTAMPTOSTRING(TST*1000, 'MMM-dd HH:mm:ss','Europe/London') as TS,
GEO_DISTANCE(LAT,LON,51.4965005,-0.2106881,'KM') AS DISTANCE_FROM_VENUE
FROM MQTT_RAW emit changes;

SELECT who, SPLIT(WHO, '/')[2] AS WHO2 FROM MQTT_RAW EMIT CHANGES LIMIT 5;
SELECT who, SPLIT(WHO, '/')[3] AS WHO2 FROM MQTT_RAW EMIT CHANGES LIMIT 5;

SELECT LAT, LON, CAST(LAT AS VARCHAR) + ',' + CAST(LON AS VARCHAR) AS LOCATION FROM MQTT_RAW EMIT CHANGES LIMIT 5;

Expand Down

0 comments on commit 93b7ff8

Please sign in to comment.