Open yyj1219 opened 2 months ago
timeZone not implemented in CompositeDateHistogramAggregationSource.
CompositeDateHistogramAggregationSource.of(cdha -> cdha .field("time") .fixedInterval(Time.of(t -> t.time("1h"))) .timeZone("Asia/Seoul") );
I expected timeZone(), but there is zoneId(). However, in OpenSearch 2.13, CompositeDateHistogramAggregationSource only supports time_zone and does not support zone_id.
timeZone()
zoneId()
CompositeDateHistogramAggregationSource
time_zone
zone_id
Please add timeZone().
OpenSearch 2.13 and OpenSearch Java Client 2.13
@yyj1219 Thanks for reporting this! Would you be interested in contributing a PR to add this? It would be very welcomed if so 😄
@Xtansia Alright, I'll give it a try.
What is the bug?
timeZone not implemented in CompositeDateHistogramAggregationSource.
How can one reproduce the bug?
I expected
timeZone()
, but there iszoneId()
. However, in OpenSearch 2.13,CompositeDateHistogramAggregationSource
only supportstime_zone
and does not supportzone_id
.What is the expected behavior?
Please add
timeZone()
.What is your host/environment?
OpenSearch 2.13 and OpenSearch Java Client 2.13