Hi @Haskell
Apologies for delayed response, but just a top or bottom won't help in this situation.
As we won't know number of rows returned by the query in real time, it can be 100, 500 , 900, 1000 or 1500.
Now since Grafana - Stackdriver Plugin has a limitation of 1000 rows per API Call. We were thinking of processing Query Data in bits - 1000 records per request so we will have two queries one query will return 1000 and next query to return the remaining number of rows - which will be from row number 1001 to 1500 - That way we can avoid overlapping of data. In Regular SQL we'd use SELECT * FROM your_table
ORDER BY some_column
LIMIT 500 OFFSET 500;LIMIT and OFFSET to capture number of records we are interested in, is something we can do in MQL?