OpenSearch/x-pack/plugin/sql
Marios Trivyzas 204d086266 SQL: Fix issue with timezone when paginating (#52101)
Previously, when the specified (or default) fetchSize led to
subsequent HTTP requests and the usage of cursors, those subsequent
were no longer using the client timezone specified in the initial
SQL query. As a consequence, Even though the query is executed once
(with the correct timezone) the processing of the query results by
the HitExtractors in the next pages was done using the default
timezone Z. This could lead to incorrect results.

Fix the issue by correctly using the initially specified timezone,
which is found in the deserialisation of the cursor string.

Fixes: #51258
(cherry picked from commit 8f7afbdeb9295999b48a6c36db5b31cbe0cee432)
2020-02-11 15:27:56 +01:00
..
jdbc Remove comparison to true for booleans (#51723) 2020-01-31 16:35:43 -08:00
qa SQL: Fix issue with timezone when paginating (#52101) 2020-02-11 15:27:56 +01:00
sql-action Upgrade to lucene-8.5.0-snapshot-d62f6307658 (#52039) (#52130) 2020-02-10 10:13:22 +01:00
sql-cli Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
sql-client SQL: Handle uberjar scenario where the ES jdbc driver file is bundled in another jar (#51856) (#52024) 2020-02-07 04:15:59 +02:00
sql-proto Fix milliseconds handling in intervals (#51675) (#52156) 2020-02-10 19:24:26 +01:00
src SQL: Fix issue with timezone when paginating (#52101) 2020-02-11 15:27:56 +01:00
build.gradle QL: Backport project to 7.x (#51497) 2020-01-27 22:03:58 +02:00