ulysses-you commented on a change in pull request #30443:
URL: https://github.com/apache/spark/pull/30443#discussion_r527721312
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/EliminateSortsSuite.scala
##########
@@ -48,8 +49,18 @@ class EliminateSortsSuite extends AnalysisTest {
Batch("Limit PushDown", FixedPoint(10), LimitPushDown) :: Nil
}
- val testRelation = LocalRelation('a.int, 'b.int, 'c.int)
- val testRelationB = LocalRelation('d.int)
+ val testRelation = LocalRelation.fromExternalRows(
+ Seq(Symbol("a").int, Symbol("b").int, Symbol("c").int),
+ Seq(
+ Row(1, 2, 3), Row(1, 2, 3), Row(1, 2, 3), Row(1, 2, 3), Row(1, 2, 3),
Row(1, 2, 3),
+ Row(1, 2, 3), Row(1, 2, 3), Row(1, 2, 3), Row(1, 2, 3), Row(1, 2, 3),
Row(1, 2, 3))
+ )
+ val testRelationB = LocalRelation.fromExternalRows(
+ Seq(Symbol("d").int),
+ Seq(
+ Row(1), Row(1), Row(1), Row(1), Row(1), Row(1),
+ Row(1), Row(1), Row(1), Row(1), Row(1), Row(1))
+ )
Review comment:
This test uses rule `LimitPushDown`, so fill some data to avoid test
fail.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]