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
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 ofpartition_count, which can lead to suboptimal planning decisions downstream.To Reproduce
No response
Expected behavior
No response
Additional context
No response