-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-5323][SQL] Remove Row's Seq inheritance. #4115
Conversation
cc @yhuai @marmbrus @liancheng you should probably all take a look at this since it changes so many things. Our test cases are really hard to change :( |
Test build #25797 has started for PR 4115 at commit
|
Test build #25798 has started for PR 4115 at commit
|
Test build #25797 has finished for PR 4115 at commit
|
Test FAILed. |
Test build #25798 has finished for PR 4115 at commit
|
Test FAILed. |
Test build #25806 has started for PR 4115 at commit
|
Test build #25806 has finished for PR 4115 at commit
|
Test FAILed. |
Test build #25811 has started for PR 4115 at commit
|
Test build #25811 has finished for PR 4115 at commit
|
Test FAILed. |
if ((row1 eq null) && (row2 eq null)) { | ||
"[ empty row ]" | ||
} else if (row1 eq null) { | ||
"[" + row2.mkString(",") + "]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this: row2.mkString("[", ",", "]")
?
Test build #25832 has started for PR 4115 at commit
|
Test build #25833 has started for PR 4115 at commit
|
@@ -39,7 +39,8 @@ case class WrapDynamic(children: Seq[Attribute]) extends Expression { | |||
override def eval(input: Row): DynamicRow = input match { | |||
// Avoid copy for generic rows. | |||
case g: GenericRow => new DynamicRow(children, g.values) | |||
case otherRowType => new DynamicRow(children, otherRowType.toArray) | |||
case otherRowType => new DynamicRow(children, otherRowType.toSeq.toArray) | |||
// TODO: toSeq.toArray is very slow! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might even just get rid of WrapDynamic
Test build #25832 has finished for PR 4115 at commit
|
Test FAILed. |
Test build #25833 has finished for PR 4115 at commit
|
Test FAILed. |
Test build #25844 has started for PR 4115 at commit
|
Test build #25844 has finished for PR 4115 at commit
|
Test FAILed. |
Test build #25845 has started for PR 4115 at commit
|
Test build #25847 has started for PR 4115 at commit
|
Test build #25847 has finished for PR 4115 at commit
|
Test PASSed. |
Test build #25845 has finished for PR 4115 at commit
|
Test PASSed. |
This PR removes the deprecated `ParquetQuerySuite`, renamed `ParquetQuerySuite2` to `ParquetQuerySuite`, and refactored changes introduced in #4115 to `ParquetFilterSuite` . It is a follow-up of #3644. Notice that test cases in the old `ParquetQuerySuite` have already been well covered by other test suites introduced in #3644. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/apache/spark/4116) <!-- Reviewable:end --> Author: Cheng Lian <[email protected]> Closes #4116 from liancheng/remove-deprecated-parquet-tests and squashes the following commits: f73b8f9 [Cheng Lian] Removes deprecated Parquet test suite
Author: Reynold Xin <[email protected]> Closes apache#4115 from rxin/row-seq and squashes the following commits: e33abd8 [Reynold Xin] Fixed compilation error. cceb650 [Reynold Xin] Python test fixes, and removal of WrapDynamic. 0334a52 [Reynold Xin] mkString. 9cdeb7d [Reynold Xin] Hive tests. 15681c2 [Reynold Xin] Fix more test cases. ea9023a [Reynold Xin] Fixed a catalyst test. c5e2cb5 [Reynold Xin] Minor patch up. b9cab7c [Reynold Xin] [SPARK-5323][SQL] Remove Row's Seq inheritance.
This PR removes the deprecated `ParquetQuerySuite`, renamed `ParquetQuerySuite2` to `ParquetQuerySuite`, and refactored changes introduced in apache#4115 to `ParquetFilterSuite` . It is a follow-up of apache#3644. Notice that test cases in the old `ParquetQuerySuite` have already been well covered by other test suites introduced in apache#3644. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/apache/spark/4116) <!-- Reviewable:end --> Author: Cheng Lian <[email protected]> Closes apache#4116 from liancheng/remove-deprecated-parquet-tests and squashes the following commits: f73b8f9 [Cheng Lian] Removes deprecated Parquet test suite
No description provided.