-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Filters agg combined with query string or filters errors if no results #2428
Comments
Just a note to myself as I am getting back into the swing of things. This is caused because of a no data error. The issue is that a data object is being returned with an empty row, column, or series value. Pull request #2300 should fix this issue. |
@stormpython just tried on master, and still doesn't work, but get a different error this time:
|
As mentioned in #2572, I'm still getting the same error as when the origin issue was filed.
|
@w33ble digging into this issue, I get a strange result when I look at the data. There is a data object that consists of Is this expected for filter aggs? |
Yes. The problem is the response from ES - the bucket is always defined, since we've told it what the bucket is (the filter agg). So, that bucket comes back, but since the bucket has no data, the next bucket has nothing in it. |
Using some syslog data.
Create new bar chart visualisation, add split chart agg, filters agg, query 1:
syslog_program:dbus
. Apply, see a bar. Now entersyslog_message:bound
into query box, see zero bar, as expected, no messages match both.Now add a sub aggregation, X-Axis, date histogram, and get an error in the javascript console:
Okay this is a bit of a weird example, but if I have a visualisation with a filters agg in a dashboard, and change the query string or do filtering that would cause there to be no results, it breaks in the same way.
The text was updated successfully, but these errors were encountered: