Running the command below:
SELECT * FROM MY_STREAM WHERE speed != 0 GROUP BY name LIMIT 10;
results to an error:
Pull queries don't support GROUP BY clauses.
Is there a way to query 10 records with the name
value being different and unique across all 10 records returned?
You can try something like this. Also, you can include WINDOW for the specific duration.
SELECT name, count(*) FROM MY_STREAM
WHERE speed != 0
GROUP BY name
HAVING count(*) = 10
EMIT CHANGES
LIMIT 10;