Nested aggregation unexpected behavior

Hi,
I have problem with query described here (the question is too long for this forum) https://stackoverflow.com/questions/48458930/nested-aggregation-unexpected-behavior
Do you have any idea where is the problem?

Thank you for any advice

Problem solved on version 6.2 (previous version was 6.1)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.