confluentinc/ksql

avg should return null when no row is aggregated

Open

#9 752 ouverte le 4 janv. 2023

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Java (1 048 forks)batch import
enhancementgood first issue

Métriques du dépôt

Stars
 (5 739 stars)
Métriques de merge PR
 (Merge moyen 4j 20h) (6 PRs mergées en 30 j)

Description

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

Guide contributeur