-
- Downloads
[SPARK-1915] [SQL] AverageFunction should not count if the evaluated value is null.
Average values are difference between the calculation is done partially or not partially. Because `AverageFunction` (in not-partially calculation) counts even if the evaluated value is null. Author: Takuya UESHIN <ueshin@happy-camper.st> Closes #862 from ueshin/issues/SPARK-1915 and squashes the following commits: b1ff3c0 [Takuya UESHIN] Modify AverageFunction not to count if the evaluated value is null.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregates.scala 6 additions, 3 deletions...rg/apache/spark/sql/catalyst/expressions/aggregates.scala
- sql/core/src/test/scala/org/apache/spark/sql/DslQuerySuite.scala 10 additions, 0 deletions...e/src/test/scala/org/apache/spark/sql/DslQuerySuite.scala
Please register or sign in to comment