-
Notifications
You must be signed in to change notification settings - Fork 25.2k
ESQL: FoldNull folding aggs into literals, raising an "unknown agg" error #110257
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
Comments
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Related with #100634 |
I'm not sure we should close this, #100634 is a request for enhancements while this one is an actual bug (error 500). Interestingly, |
Not sure it's worth adding a validation for this, as implementing something like |
I'm 50/50 here really. The aggs that don't fail, is because they have the surrogate, indeed. However, any agg with multiple parameters, that have a null in one of them but a non-foldable in the other, will fail. For example, percentile can't really be fixed. We can't convert So, we can reopen this if you think it's interesting |
Ah, I was thinking about Re-opening, but I think we need to make the wording of this issue more precise. |
Probably same issue:
returns a 500 INTERNAL SERVICE ERROR
|
When an aggregation is folded by
FoldNull
, it's converted to something likeSTATS null
, which leads to an error.Reproduced by using adding a null param to any agg that won't surrogate based on that param being foldable.
Example:
Result:
The text was updated successfully, but these errors were encountered: