kwai / blaze

Blazing-fast query execution engine speaks Apache Spark language and has Arrow-DataFusion at its core.
Apache License 2.0
1.3k stars 121 forks source link

Specialize count(1) aggregation #579

Closed richox closed 1 month ago

richox commented 2 months ago

Is your feature request related to a problem? Please describe. currently blaze treats count(1) as normal count aggregator and introduces extra computing.

Describe the solution you'd like possible solutions:

  1. specialize a AggCount1 aggregator which takes no parameters.
  2. handle such situation in the existed AggCount by supporting variable parameters.

Describe alternatives you've considered

Additional context