-
Notifications
You must be signed in to change notification settings - Fork 25k
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
SQL: improve handling of ES aggregations #35745
Comments
Pinging @elastic/es-search-aggs |
For 1), you can set the
Returns:
If you're working with the java objects, you should be able to set the EDIT: Oh, if you were looking for the time object instead of the string then you can safely ignore everything I just said :) |
@astefan can you please take a look at incorporating this into |
Second part of this issue has been implemented via #44745. |
Pinging @elastic/es-ql (Team:QL) |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Superceded by ES|QL |
Currently underlying ES aggregations are returned as are, both as sub-aggregations and bucket selector.
Unfortunately due to the underlying inconsistencies this can have undesirable effects, for example:
In both example, this can be handled inside SQL by wrapping the aggregation to guarantee the expected value.
The text was updated successfully, but these errors were encountered: