diff options
author | Michael Armbrust <michael@databricks.com> | 2015-05-22 09:43:46 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2015-05-22 09:43:46 -0700 |
commit | 3b68cb0430067059e9c7b9a86dbea4865e29bf78 (patch) | |
tree | bcfa6ab01645967f076fbf24ec087cd1e9dcf80e /sql/catalyst | |
parent | 4e5220c3171b6a2f4970409bd16be2db930df65d (diff) | |
download | spark-3b68cb0430067059e9c7b9a86dbea4865e29bf78.tar.gz spark-3b68cb0430067059e9c7b9a86dbea4865e29bf78.tar.bz2 spark-3b68cb0430067059e9c7b9a86dbea4865e29bf78.zip |
[SPARK-6743] [SQL] Fix empty projections of cached data
Author: Michael Armbrust <michael@databricks.com>
Closes #6165 from marmbrus/wrongColumn and squashes the following commits:
4fad158 [Michael Armbrust] Merge remote-tracking branch 'origin/master' into wrongColumn
aad7eab [Michael Armbrust] rxins comments
f1e8df1 [Michael Armbrust] [SPARK-6743][SQL] Fix empty projections of cached data
Diffstat (limited to 'sql/catalyst')
-rw-r--r-- | sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala index 4190b7ffe1..0d460b634d 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala @@ -55,6 +55,9 @@ object Row { // TODO: Improve the performance of this if used in performance critical part. new GenericRow(rows.flatMap(_.toSeq).toArray) } + + /** Returns an empty row. */ + val empty = apply() } |