Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect reverse nested agg counts when using multi level nested filters #9263
There are couple of issues, one is regression of previously fixed issue #6994. This is working fine in 1.3.4 and 1.4.0, failing from 1.4.1.
Also there is another issue, reverse nested agg counts are incorrect when using more than one level of nested filter when fetching the aggs, this is happening even in 1.3.4.
Below details to repro the issue. Not sure if these should be separate issues, entering as one as they seem to be related.
Query to find bar counts, grouping by baz_cde, and applying a bar filter
This query should return bar_count as 3 for all baz_cde fields, and is working as expected in 1.3.4 and 1.4.0, but failing from 1.4.1 onwards. Tested in 1.4.2 also.
Query to find bar counts, grouping by baz_cde, and applying a bar filter as well as bar.color filter
This query should return bar_count as 2 for all baz_cde fields, but only one of them "xyz" is getting the correct count 2 but for the others value 1 is returned. This is happening in older versions too.
This issue is not related to #9280, but to #9317 instead, at least the first part of this bug report (which is failing from 1.4.1). The underlying problem is that the
A similar problem also exists in the