Skip to content

Commit

Permalink
Minor SQL example updates
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed Jun 25, 2024
1 parent d1e476a commit 280f3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/ch/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ FROM
WHERE
token_id = 15 AND
(name = 'speed' OR name = 'currentLocationLatitude' OR name = 'currentLocationLongitude' OR name = 'powertrainFuelSystemSupportedFuelTypes' OR name = 'none')
Group BY
GROUP BY
name
*/
func getLatestQuery(latestArgs *model.LatestSignalsArgs) (string, []any) {
Expand Down Expand Up @@ -251,7 +251,7 @@ SELECT
FROM
`signal`
WHERE
`name` IN ['speed', 'oBDRunTime', 'powertrainType', 'powertrainFuelSystemSupportedFuelTypes']
`name` IN ['speed', 'obdRunTime', 'powertrainType', 'powertrainFuelSystemSupportedFuelTypes']
AND token_id = 15
AND timestamp > toDateTime('2024-04-15 09:21:19')
AND timestamp < toDateTime('2024-04-27 09:21:19')
Expand Down

0 comments on commit 280f3b2

Please sign in to comment.