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 307ecbf commit f206580Copy full SHA for f206580
sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
@@ -1063,7 +1063,7 @@ class DataFrame private[sql](
1063
1064
val ret: Seq[Row] = if (outputCols.nonEmpty) {
1065
val aggExprs = statistics.flatMap { case (_, colToAgg) =>
1066
- outputCols.map(c => Column(colToAgg(Column(c).expr)).as(c))
+ outputCols.map(c => Column(Cast(colToAgg(Column(c).expr), DoubleType)).as(c))
1067
}
1068
1069
val row = agg(aggExprs.head, aggExprs.tail: _*).head().toSeq
0 commit comments