We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac44e4 commit 3443c18Copy full SHA for 3443c18
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/Average.scala
@@ -32,7 +32,7 @@ import org.apache.spark.sql.types._
32
> SELECT _FUNC_(col) FROM VALUES (1), (2), (NULL) AS tab(col);
33
1.5
34
> SELECT _FUNC_(cast(v as interval)) FROM VALUES ('-1 weeks'), ('2 seconds'), (null) t(v);
35
- interval -3 days -11 hours -59 minutes -59 seconds
+ -3 days -11 hours -59 minutes -59 seconds
36
""",
37
since = "1.0.0")
38
case class Average(child: Expression) extends DeclarativeAggregate with ImplicitCastInputTypes {
0 commit comments