You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This forces the improper construction of DateHistogram requests when using the Java API to construct queries. Both the preOffset and postOffset variables should be converted to Strings.
The text was updated successfully, but these errors were encountered:
…ffset
This is what DateHistogramParser expects so will enable the builder to build valid requests using these variables.
Also added tests for preOffset and postOffset since these tests did not exist
Closes#5586
spinscale
changed the title
DateHistogramBuilder uses wrong data type for pre_offset and post_offset
Aggregations: DateHistogramBuilder uses wrong data type for pre_offset and post_offset
Jul 16, 2014
The DateHistogramBuilder stores and builds the DateHistogram with a
long
value for thepre_offset
andpost_offset
, which is neither what the API docs specify (which specify the format is the data format1s
,2d
, etc.) nor what the DateHistogramParser expect.This forces the improper construction of DateHistogram requests when using the Java API to construct queries. Both the
preOffset
andpostOffset
variables should be converted toStrings
.The text was updated successfully, but these errors were encountered: