confluentinc/ksql

avg should return null when no row is aggregated

Open

#9,752 建立於 2023年1月4日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Java (1,048 fork)batch import
enhancementgood first issue

倉庫指標

Star
 (5,739 star)
PR 合併指標
 (平均合併 4天 20小時) (30 天內合併 6 個 PR)

描述

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

貢獻者指南