i am currently using a AWS Timestream Database in combination with grafana. If i want to get the last non-null record of a column i am querying a timeinterval and using the limit
funtions to only display the last value.
Select DevEUI, time, measure_value::boolean as "Bewegung" from $__database.$__table Where measure_name = 'inTrip' and measure_value::boolean = true and $__timeFilter order by time desc limit 1
Influx db has an last()
function which selects the last non-null record from an input table as a selector function.
Is there any equivalent function in AWS Timestream which i am missing? Because AWS has Pay per Use of the byte scanned by a query the last function would reduce the cost.
Thank you for your advice