OpenSearch/docs/en
Nik Everett 876aebf7e0 SQL: Make extract work for any datetime function (elastic/x-pack-elasticsearch#3756)
This allows any datetime function to be present in `EXTRACT` which feels
more consistent. `EXTRACT(FOO FROM bar)` is now just sugar for
`FOO(bar)`. This is *much* simpler to explain in the documentation then
"these 10 fields are supported by extract and they are the same as this
subset of the datetime functions."

The implementation of this is a little simpler then the old way. Instead
of resolving the function in the parser we create an
`UnresolvedFunction` that looks *almost* just like what we'd create for
a single argument function and resolve the function in the `Analyzer`.
This feels like a net positive as it allows us to group `EXTRACT`
resolution failures with other function resolution failures.

This also creates `UnresolvedFunctionTests` and
`UnresolvedAttributeTests`. I had to create `UnresolvedFunctionTests`
because `UnreolvedFunction` now has three boolean parameters which is
incompatible with the generic `NodeSubclassTests`'s requirement that all
ctor parameters be unique. I created `UnresolvedAttributeTests` because
I didn't want `UnresolvedFunctionTests` to call `NodeSubclassTests` and
figured that we'd want `UnresolvedAttributeTest` eventually and now felt
like as good a time as any.

Added a 

Original commit: elastic/x-pack-elasticsearch@358aada308
2018-02-03 16:10:09 -05:00
..
commands [DOCS] Added certutil command (elastic/x-pack-elasticsearch#3294) 2018-01-03 09:28:49 -08:00
ml Remove all tribe related code, comments and documentation (elastic/x-pack-elasticsearch#3784) 2018-01-30 20:40:46 +01:00
monitoring Remove all tribe related code, comments and documentation (elastic/x-pack-elasticsearch#3784) 2018-01-30 20:40:46 +01:00
release-notes Remove XPackExtension break from 7.0 it's ported to 6.3 2018-01-29 10:42:12 +01:00
rest-api [DOCS] Added job ID requirements (elastic/x-pack-elasticsearch#3727) 2018-01-25 09:23:56 -08:00
security Remove all tribe related code, comments and documentation (elastic/x-pack-elasticsearch#3784) 2018-01-30 20:40:46 +01:00
settings Merge remote-tracking branch 'origin/master' into feature/sql_2 2018-01-29 15:42:01 -07:00
setup [DOCS] Move monitoring configuration info (elastic/x-pack-elasticsearch#3674) 2018-01-25 13:49:30 -08:00
sql SQL: Make extract work for any datetime function (elastic/x-pack-elasticsearch#3756) 2018-02-03 16:10:09 -05:00
watcher Move x-pack-core to core package (elastic/x-pack-elasticsearch#3678) 2018-01-23 12:43:58 -06:00
index.asciidoc Merge branch 'master' into feature/sql_2 2018-02-01 17:21:37 -05:00
node.asciidoc [DOCS] Create X-Pack installation and introduction for Elasticsearch Ref (elastic/x-pack-elasticsearch#1698) 2017-06-19 18:01:52 -07:00