- 
                Notifications
    You must be signed in to change notification settings 
- Fork 116
Allow strings in date range aggregation #5402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| Following you can find the validation changes against the target branch for the APIs. 
 You can validate these APIs yourself by using the  | 
| Let me check the consequences of this change for the .NET client please, before you merge it. FieldValue does not look like the best candidate here at a first glance. Would DateTime work? If I remember correctly this type alles string and timestamp representation. However, not sure why the range was a double before. AFAIK we do have double timestamp types as well, but not yet a combined version like DateTime. We should probably introduce a new type of DateTime does not fit, to allow statically typed languages to use their native DateTime primitives like we do in all other cases that deal with date/time values. | 
| Ok, so I checked this in detail and I think the test is simply not valid. "aggs": {
  "date_range": {
    "range": {This part makes no sense.  The  WDYT @l-trotta @Anaethelion ? | 
| @flobernd this is not a date_range aggregation... it's a range aggregation, named "date_range" ^^" still, I also think this test is wrong, I can find no evidence server side that  | 
| Ah right, the first key is the name of the aggregation. Confusing 😵💫 | 
| had to stare at it for a good 2 minutes | 
Should fix the following test: