Skip to content

[BUG] Result of Q29 is incorrect without composite aggregation paginating #4836

Closed

Description

@LantaoJin

What is the bug?
The results of following PPL queries are incorrect due to miss composite aggregation paginating:
Q29 and its plan
Q42 and its plan

Q29

| stats bucket_nullable=false avg(length(Referer)) as l, count() as c, min(Referer) by k
| where c > 100000

This query is pushed down to composite aggregate then filter the aggregation results (10000 rows) in memory.

Q42

| stats bucket_nullable=false count() as PageViews by WindowClientWidth, WindowClientHeight
| sort - PageViews
| head 10 from 10000

This query return empty because it is pushed down to multi-terms aggregation with default 10000 rows then head 10 row from offset 10000.

Do you have any additional context?
#4519
#4760

Activity

  1. added
    bug
    on Nov 20, 2025
  2. added
    PPL
    and removed on Nov 20, 2025
  3. self-assigned this
    on Nov 20, 2025
  4. moved this from Not Started to In progress in PPL Trackeron Dec 2, 2025
  5. moved this from In progress to In review in PPL Trackeron Dec 2, 2025
  6. moved this from In review to Done in PPL Trackeron Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PPLbugclickbenchdata-correctness

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions