I am facing some issues while querying Timestream DB from my NodeJS environment. I am receiving an empty array in response for all the queries that have large response The exact same queries are working when I use the console. So I am sure the query syntax and format is right. The documentation says when the response is greater than 1 MB then pagination is used. So I should receive paginated response with nextPageToken but instead I am getting [].
Other thing I noticed that the MaxRows param is not working. So there is one query that returns 84 rows. When I pass MaxRows = 83 or anything less than that then I am receiving empty array in response and when I pass MaxRows = 84 or anything more then I am receiving the actual response.
On the basis of these observations I think pagination is not working. Any idea on how to resolve this?