Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
Next Next commit
Copy records in executeCollect to avoid issues with mutable rows.
  • Loading branch information
marmbrus committed May 11, 2014
commit a8420ca0c4cbc5988607d0cd235ffeb2cb51d052
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ abstract class SparkPlan extends QueryPlan[SparkPlan] with Logging {
/**
* Runs this query returning the result as an array.
*/
def executeCollect(): Array[Row] = execute().collect()
def executeCollect(): Array[Row] = execute().map(_.copy()).collect()

protected def buildRow(values: Seq[Any]): Row =
new GenericRow(values.toArray)
Expand Down