Skip to content

Stats for no-grouping agg are wrong for partial output mode #22779

@neilconway

Description

@neilconway

Describe the bug

A partial aggregate with no group by expression emits one row per output partition, even for input partitions that did not receive any rows. The stats code gets this incorrect, and claims that the partial agg outputs Exact(0) rows in this scenario. This is off by a factor of partition_count, which can lead to suboptimal planning decisions downstream.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions