OpenSearch/x-pack/plugin/sql/qa
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
..
multi-node Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
no-sql SQL: handle SQL not being available in a more graceful way (#43665) 2019-07-10 14:36:24 +03:00
security Check if interface is up for loopback devices only (#51583) 2020-01-28 18:38:46 -05:00
single-node SQL: Refactor usage of NamedExpression (#49693) 2019-12-07 11:02:14 +02:00
src/main SQL: Fix issue with timezone when paginating (#52101) 2020-02-11 15:27:56 +01:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00