Hi @ayush25091995, To pass the page_token
while calling the API to get query history in the SQL warehouse, youโll need to encode the token before using it in the URL. Specifically, characters like โ+โ should be replaced by %2B
. This ensures that the token is correctly interpreted by the API.
Hereโs how you can handle the page_token
:
- Retrieve the
page_token
from the previous pageโs response.
- Encode the token using URL encoding rules (e.g., replace โ+โ with
%2B
).
- Include the encoded
page_token
in the URL for the next page request.
By following these steps, you should be able to paginate through the query history results without encountering duplicate data. If you have any further questions or need additional assistance, feel free to ask! ๐
For more details, you can refer to the Databricks REST API reference.1