Skip to content

Commit

Permalink
[SPARK-26318][SQL] Deprecate Row.merge
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?
Deprecate Row.merge

## How was this patch tested?
N/A

Closes #23271 from KyleLi1985/master.

Authored-by: 李亮 <liang.li.work@outlook.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
KyleLi1985 authored and HyukjinKwon committed Dec 20, 2018
1 parent 5ad0360 commit 04d8e3a
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 04d8e3a

Please sign in to comment.