confluentinc/ksql

avg should return null when no row is aggregated

Open

#9,752 opened on 2023年1月4日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Java (1,048 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (5,739 stars)
PR merge metrics
 (平均マージ 4d 20h) (30d で 6 merged PRs)

説明

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

コントリビューターガイド