confluentinc/ksql

avg should return null when no row is aggregated

Aberta

#9.752 aberto em 4 de jan. de 2023

 (1 comentário) (0 reação) (0 responsável)Java (1.048 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (5.739 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador