-
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
auto_date_histogram fails where date_histogram does not #44914
Comments
/cc @pcsanwald |
Pinging @elastic/es-analytics-geo |
@igoristic Do you have a stack trace or error from Elasticsearch when it fails to work with the bucket script? |
@polyfractal I've been looking into this a bit already, so I assigned to me. working with @pickypg, I do have access to a cluster where we can repro this error. |
{
"error": {
"root_cause": [],
"type": "search_phase_execution_exception",
"reason": "",
"phase": "fetch",
"grouped": true,
"failed_shards": [],
"caused_by": {
"type": "unsupported_operation_exception",
"reason": "Not supported"
}
},
"status": 500
} ES output:
|
Hi @pcsanwald. Any updates on this? This bug is a blocker for a high-priority bug in the Stack Monitoring application that causes it to become unusable under certain conditions and we're hoping to try to get a fix pushed quickly. We're happy to do whatever we can to help. :) |
@cachedout do you have a link to an issue for the high priority bug that's blocking you? Or is it the kibana bug referenced in this issue above? |
@cachedout apologies for the late response. We're discussing how to deal with this, it's due to some of the specifics of pipeline aggs. It's not a trivial fix, @polyfractal will be looking into this. |
@pcsanwald Thank you for the update. @nknize Yes, it is the issue you linked to. @igoristic can help provide more context as well. |
@nknize Yeah, it's the issue you linked to, and this issue is already affecting some customers in live productions. The
|
Just merged #45359, which should resolve this issue. :) |
False alarm, sorry. :( The bugfix is mostly correct I think, but there is a failing test that makes me think it isn't fully fixed yet. I'm going to revert the commit and try again, will keep this thread updated. |
I have opened a new PR to fix this issue (which I thought I had reopened, but apparently not). Will update again when the new PR merges :) |
accidentally closed this one, thanks @pickypg for the catch. apologies |
Luckily, I just merged #45796 so we can go ahead and close again :) (So sorry for the delay on this, the PR got LGTM but it fell through the cracks and I never merged it 😭 ) |
Hey @polyfractal, I'm seeing some unexpected behavior that I think is related to this PR. It seems that See this example here: https://gist.github.com/chrisronline/836dbbdb594d5848538e412236f32147 For 7.5 and below, the output is:
For 7.6 and above, the output is:
Is this intended? (As a side note for @elastic/stack-monitoring folks, this is causing this failure: elastic/kibana#52470) |
We are planning to port most of Stack Monitoring current aggregations to use
auto_date_histogram
in lieu ofdate_histogram
as part of elastic/kibana#37246.We noticed that
auto_date_histogram
supports most of aggregations thatdate_histogram
does, but fails (onfetch
phase) withbucket_script
. As a first pass, I tried replacing the existingdate_histogram
usage withauto_date_histogram
and it broke:This query fails where the same query works if you replace
auto_date_histogram
withdate_histogram
(and useinterval
instead ofbuckets
). Anyone attempting to run this on an existing cluster will likely need to shift the daterange
query.The text was updated successfully, but these errors were encountered: