Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cast to double to fix SPARK-7687
  • Loading branch information
JoshRosen committed May 18, 2015
commit f2065809cace506d84daaca7a8fc466742103e99
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ class DataFrame private[sql](

val ret: Seq[Row] = if (outputCols.nonEmpty) {
val aggExprs = statistics.flatMap { case (_, colToAgg) =>
outputCols.map(c => Column(colToAgg(Column(c).expr)).as(c))
outputCols.map(c => Column(Cast(colToAgg(Column(c).expr), DoubleType)).as(c))
}

val row = agg(aggExprs.head, aggExprs.tail: _*).head().toSeq
Expand Down