Skip to content

Commit ec28924

Browse files
astefanjrodewig
andauthored
SQL: Adapt the limitations page to the new "fields" API usage (#69616) (#69815)
Co-authored-by: James Rodewig <[email protected]> (cherry picked from commit bf1b7a3)
1 parent 2aded8f commit ec28924

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

docs/reference/sql/limitations.asciidoc

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,22 +196,13 @@ indexed with some loss of precision from the original values (4.190951585769653E
196196
Therefore calling `ST_Z` function in the filtering, grouping or sorting will return `null`.
197197

198198
[discrete]
199-
[[fields-from-source]]
200-
=== Retrieving from `_source`
199+
[[using-fields-api]]
200+
=== Retrieving using the `fields` search parameter
201201

202-
Most of {es-sql}'s columns are retrieved from the document's `_source` and there is no attempt to get the columns content from
203-
`docvalue_fields` not even in the case <<mapping-source-field,`_source`>> field is disabled in the mapping explicitly.
204-
If a column, for which there is no source stored, is asked for in a query, {es-sql} will not return it. Field types that don't follow
205-
this restriction are: `keyword`, `date`, `scaled_float`, `geo_point`, `geo_shape` since they are NOT returned from `_source` but
206-
from `docvalue_fields`.
207-
208-
[discrete]
209-
[[fields-from-docvalues]]
210-
=== Retrieving from `docvalue_fields`
211-
212-
When the number of columns retrievable from `docvalue_fields` is greater than the configured <<dynamic-index-settings,`index.max_docvalue_fields_search` setting>>
213-
the query will fail with `IllegalArgumentException: Trying to retrieve too many docvalue_fields` error. Either the mentioned {es}
214-
setting needs to be adjusted or fewer columns retrievable from `docvalue_fields` need to be selected.
202+
{es-sql} retrieves column values using the <<search-fields-param,search API's
203+
`fields` parameter>>. Any limitations on the `fields` parameter also apply to
204+
{es-sql} queries. For example, if `_source` is disabled
205+
for any of the returned fields or at index level, the values cannot be retrieved.
215206

216207
[discrete]
217208
[[aggs-in-pivot]]

0 commit comments

Comments
 (0)