-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Elasticsearch 6.1.1 - Not possible to specify 'format' in Date Histogram aggregation when used in Composite Aggregation #27923
Comments
This is not supported in 6.1, the composite agg returns the raw value but I agree that it should be possible to set a format for date fields in future versions. I marked this issue as a feature request and will update it when a pr is ready. Thanks for testing the composite aggregation @byronvoorbach ! |
Hey @jimczi Ahh okay! Thanks for your response! I'm enthusiastic about the composite aggregation :D Nice addition |
This commit adds the ability to specify a date format on the `date_histogram` composite source. If the format is defined, the key for the source is returned as a formatted date. Closes elastic#27923
Hi, thank you for the resolution and the support for the format on composite date_histogram. But, it seems to me that when using in AFTER_KEY. it is ignoring the date key when using formatted. Is there any need to specify this differently? Thanks, |
@DavidKHE this issue is closed but you should be able to pass the |
Hi all!
On Elasticsearch 6.1.1 I'm getting a:
When trying to choose a format for my date_histogram aggregation, which is placed in a composite aggregation:
Is this a possible bug? Or is it not possible to have a 'key_as_string' when using composite?
Here is the complete code to reproduce:
https://gist.github.com/byronvoorbach/434f84a8cf89f6aab9cb2d9e291a9047
The text was updated successfully, but these errors were encountered: