You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the `query` and `fetch_size`, a request a number of user-defined fields for specifying
243
+
the request time-outs or localization information (such as timezone).
244
+
245
+
The table below lists the supported parameters:
246
+
247
+
[cols="^m,^m,^5"]
248
+
249
+
|===
250
+
251
+
s|name
252
+
s|Default value
253
+
s|Description
254
+
255
+
|query
256
+
|Mandatory
257
+
|SQL query to execute
258
+
259
+
|fetch_size
260
+
|1000
261
+
|The maximum number of rows (or entries) to return in one response
262
+
263
+
|filter
264
+
|none
265
+
|Optional {es} query DSL for additional <<sql-rest-filtering, filtering>>.
266
+
267
+
|request_timeout
268
+
|90s
269
+
|The timeout before the request fails.
270
+
271
+
|page_timeout
272
+
|45s
273
+
|The timeout before a pagination request fails.
274
+
275
+
|time_zone
276
+
|`Z` (or `UTC`)
277
+
|Time-zone in ISO 8601 used for executing the query on the server.
278
+
More information available https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html[here].
279
+
280
+
|===
281
+
282
+
Do note that most parameters (outside the timeout ones) make sense only during the initial query - any follow-up pagination request only requires the `cursor` parameter as explained in the <<sql-pagination, pagination>> chapter.
283
+
That's because the query has already been executed and the calls are simply about returning the found results - thus the parameters are simply ignored.
0 commit comments