confluentinc/ksql

avg should return null when no row is aggregated

Open

#9752 aperta il 4 gen 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Java (1048 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (5739 star)
Metriche merge PR
 (Merge medio 4g 20h) (6 PR mergiate in 30 g)

Descrizione

Is your feature request related to a problem? Please describe. avg returns 0.0 instead of NULL when no row is aggregated. However, IMHO, NULL is preferable because 0.0 means nothing. In addition, other projects like apache spark return null in this case. What do you think?

Describe the solution you'd like avg should return null when no row is aggregated.

Describe alternatives you've considered

Additional context

Guida contributor