OpenSearch/modules
Zachary Tong 6ae6f57d39
[7.x Backport] Force selection of calendar or fixed intervals (#41906)
The date_histogram accepts an interval which can be either a calendar
interval (DST-aware, leap seconds, arbitrary length of months, etc) or
fixed interval (strict multiples of SI units). Unfortunately this is inferred
by first trying to parse as a calendar interval, then falling back to fixed
if that fails.

This leads to confusing arrangement where `1d` == calendar, but
`2d` == fixed.  And if you want a day of fixed time, you have to
specify `24h` (e.g. the next smallest unit).  This arrangement is very
error-prone for users.

This PR adds `calendar_interval` and `fixed_interval` parameters to any
code that uses intervals (date_histogram, rollup, composite, datafeed, etc).
Calendar only accepts calendar intervals, fixed accepts any combination of
units (meaning `1d` can be used to specify `24h` in fixed time), and both
are mutually exclusive.

The old interval behavior is deprecated and will throw a deprecation warning.
It is also mutually exclusive with the two new parameters. In the future the
old dual-purpose interval will be removed.

The change applies to both REST and java clients.
2019-05-20 12:07:29 -04:00
..
aggs-matrix-stats Only create final MatrixStatsResults on final reduction (#39205) 2019-02-21 14:18:45 -05:00
analysis-common Bump 7.x branch to version 7.2.0 2019-05-01 13:38:57 -04:00
ingest-common Add HTML strip processor (#41888) 2019-05-09 13:01:07 +02:00
ingest-geoip Remove -Xlint exclusions in the ingest-geoip module. (#40629) 2019-04-01 16:21:07 +02:00
ingest-user-agent convert modules to use testclusters (#40804) 2019-04-04 11:45:40 +03:00
lang-expression Upgrade to Lucene release 8.0.0 (#39998) 2019-03-13 18:11:50 +01:00
lang-mustache Default include_type_name to false in the yml test harness. (#38058) 2019-02-01 11:44:13 -08:00
lang-painless [7.x Backport] Force selection of calendar or fixed intervals (#41906) 2019-05-20 12:07:29 -04:00
mapper-extras Bump 7.x branch to version 7.2.0 2019-05-01 13:38:57 -04:00
parent-join Deprecate using 0 value for `min_children` in `has_child` query (#41555) 2019-04-26 21:00:11 +02:00
percolator Remove -Xlint exclusions in the percolator module. (#40372) 2019-03-26 07:55:02 +01:00
rank-eval [Docs] Fix common word repetitions (#39703) 2019-04-25 20:47:47 +02:00
reindex Update ciphers for TLSv1.3 and JDK11 if available (#42082) 2019-05-20 09:45:36 -04:00
repository-url Async Snapshot Repository Deletes (#40144) (#41571) 2019-04-26 15:36:09 +02:00
transport-netty4 Correct spelling of MockLogAppender.PatternSeenEventExpectation (#41893) 2019-05-07 17:28:51 +01:00
build.gradle convert modules to use testclusters (#40804) 2019-04-04 11:45:40 +03:00