forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQL: Fix issue with timezone for JDBC pagination
Previously, when the specified (or default) `fetchSize` led to subsequent HTTP requests and the usage of cursors, those subsequent cursor requests didn't use the `timezone` defined in the connection properties. Even though the query is executed once (with the correct timezone) the processing of the values returned by the `HitExtractors` in the next pages was done using the default timezone `Z`. This could lead to incorrect results. Fix the issue by passing the initially configured timezone to each subsequent cursor HTTP request. Add a note in the docs to clarify that when the REST endpoint is used, the user needs to keep passing the `time_zone` parameter to each subsequent request, as there is no notion of a user session through in the REST HTTP endpoint. Relates to: elastic#51258
- Loading branch information
Showing
5 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters