confluentinc/ksql

avg should return null when no row is aggregated

Open

#9.752 geöffnet am 4. Jan. 2023

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Java (1.048 Forks)batch import
enhancementgood first issue

Repository-Metriken

Stars
 (5.739 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 20h) (6 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide