Skip to content

Commit

Permalink
Read DateHistogramBucket key as double rather than long
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Jan 6, 2023
1 parent e76fc2e commit 0529267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/Aggregations/AggregateFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ private IBucket GetDateHistogramBucket(ref JsonReader reader, IJsonFormatterReso
reader.ReadNext(); // ,
reader.ReadNext(); // "key"
reader.ReadNext(); // :
var key = reader.ReadInt64();
var key = reader.ReadDouble();
reader.ReadNext(); // ,
reader.ReadNext(); // "doc_count"
reader.ReadNext(); // :
Expand Down

0 comments on commit 0529267

Please sign in to comment.