OpenSearch/x-pack/plugin
Marios Trivyzas 3fd081528d
SQL: Allow current_date/time/timestamp to be also used as a function escape pattern (#41254)
CURRENT_DATE/CURRENT_TIME/CURRENT_TIMESTAMP can be used as SQL keywords
(without parentheses) and therefore there is a special rule in the
grammar to accommodate this.

Previously, this rule was also catching the parenthesised version of those functions too,
not allowing the {fn <functionName>()} to be used. E.g.:
{fn current_time(2)} or {fn current_timestamp()}

Now, the grammar rule catches only the keyword versions and all the parenthesised
versions go through the normal function resolution. As a consequence the validation
of the precision is moved from the parser lever (ExpressionBuilder) to the function
implementations.

Fixes: #41240
(cherry picked from commit bfbc9f140144b5a35aa29008b58bf58074419853)
2019-04-17 10:13:16 +03:00
..
ccr Make Transport Shard Bulk Action Async (#39793) (#41112) 2019-04-11 16:01:52 +02:00
core [ML-DataFrame] adapt page size on circuit breaker responses (#41149) 2019-04-16 19:49:43 +02:00
data-frame [ML-DataFrame] adapt page size on circuit breaker responses (#41149) 2019-04-16 19:49:43 +02:00
deprecation Add deprecation check for ILM poll interval <1s (#41096) 2019-04-12 10:43:04 -06:00
graph Deprecate types in `_graph/explore` calls. (#40466) (#40513) 2019-03-28 09:32:26 +01:00
ilm put mapping authorization for alias with write-index and multiple read indices (#40834) (#41287) 2019-04-17 14:25:33 +10:00
logstash Update logstash-management.json to use typeless template (#38653) (#39819) 2019-03-08 08:23:30 -06:00
ml [ML] Write header to autodetect before it is visible to other calls (#41085) 2019-04-16 13:51:29 +01:00
monitoring Add packaging to cluster stats response (#41048) 2019-04-10 13:47:19 -04:00
rollup Rollup/DataFrame: disallow partial results (#41114) 2019-04-12 07:31:22 +02:00
security put mapping authorization for alias with write-index and multiple read indices (#40834) (#41287) 2019-04-17 14:25:33 +10:00
sql SQL: Allow current_date/time/timestamp to be also used as a function escape pattern (#41254) 2019-04-17 10:13:16 +03:00
src/test Use alias name from rollover request to query indices stats (#40774) (#41284) 2019-04-17 14:15:05 +10:00
watcher Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
build.gradle Add support for API keys to access Elasticsearch (#38291) 2019-02-05 14:21:57 +11:00