Skip to content

Commit

Permalink
Enhance function merge performance in Row
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleLi1985 committed Dec 19, 2018
1 parent 3bc83de commit ab19141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ object Row {
/**
* Merge multiple rows into a single row, one after another.
*/
@deprecated("This method is deprecated and will be removed in future versions.", "3.0.0")
def merge(rows: Row*): Row = {
// TODO: Improve the performance of this if used in performance critical part.
new GenericRow(rows.flatMap(_.toSeq).toArray)
Expand Down

0 comments on commit ab19141

Please sign in to comment.