OpenSearch/qa
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
..
ccs-unavailable-clusters Remove cluster state size (#40109) 2019-03-15 17:16:25 -04:00
die-with-dignity [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
evil-tests [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
full-cluster-restart Bump 7.x branch to version 7.2.0 2019-05-01 13:38:57 -04:00
logging-config [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
mixed-cluster [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
multi-cluster-search [7.x Backport] Force selection of calendar or fixed intervals (#41906) 2019-05-20 12:07:29 -04:00
no-bootstrap-tests Plugins: Remove meta plugins (#30670) 2018-05-18 10:56:08 -07:00
rolling-upgrade Bump 7.x branch to version 7.2.0 2019-05-01 13:38:57 -04:00
smoke-test-client Testing conventions: add support for checking base classes (#36650) 2019-01-08 13:39:03 +02:00
smoke-test-http Deprecate types in index API (#36575) 2018-12-18 08:53:49 -05:00
smoke-test-ingest-disabled Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
smoke-test-ingest-with-all-dependencies Default include_type_name to false in the yml test harness. (#38058) 2019-02-01 11:44:13 -08:00
smoke-test-multinode Simplify integ test distribution types (#37618) 2019-01-21 12:37:17 -08:00
smoke-test-plugins Move repository-s3 fixture tests to QA test project (#29372) 2018-04-27 16:49:06 +02:00
unconfigured-node-name [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
vagrant Cleanup plugin bin directories (#41907) 2019-05-10 11:00:41 -07:00
verify-version-constants [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
wildfly Provide names for all artifact repositories (#41857) 2019-05-07 06:35:28 -04:00
build.gradle Provide names for all artifact repositories (#41857) 2019-05-07 06:35:28 -04:00