Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from using docvalue_fields to extracting values from _source #44062

Merged
merged 13 commits into from
Jul 24, 2019
7 changes: 4 additions & 3 deletions docs/reference/sql/limitations.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ Therefore calling `ST_Z` function in the filtering, grouping or sorting will ret
[[fields-from-source]]
=== Retrieving from _source

Most of {es-sql}'s columns are retrieved from `_source`, even though the mapping may disable the <<mapping-source-field,`_source`>> field.
If such a column is explicitly asked for in a query, {es-sql} will not return it. Field types NOT returned from `_source` include: `keyword`,
`date`, `scaled_float`, `geo_point`, `geo_shape`.
Most of {es-sql}'s columns are retrieved from the document's `_source` and there is no attempt to get the columns content from
`docvalue_fields` not even in the case <<mapping-source-field,`_source`>> field is disabled in the mapping explicitly.
If a column, for which there is no source stored, is asked for in a query, {es-sql} will not return it. Field types NOT returned
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe: Field types that don't follow this restriction are: .... since they are NOT returned from _source but from doc values.

from `_source` are: `keyword`, `date`, `scaled_float`, `geo_point`, `geo_shape`.