File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
main/scala/org/apache/spark/sql/catalyst/plans/logical
test/scala/org/apache/spark/sql/catalyst/optimizer Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,9 @@ case class Aggregate(
135135 def references = (groupingExpressions ++ aggregateExpressions).flatMap(_.references).toSet
136136}
137137
138- case class Limit (limit : Expression , child : LogicalPlan ) extends UnaryNode {
138+ case class Limit (limitExpr : Expression , child : LogicalPlan ) extends UnaryNode {
139139 def output = child.output
140- def references = limit .references
140+ def references = limitExpr .references
141141}
142142
143143case class Subquery (alias : String , child : LogicalPlan ) extends UnaryNode {
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ class CombiningLimitsSuite extends OptimizerTest {
4040 val originalQuery =
4141 testRelation
4242 .select(' a )
43- .limit(10 ).analyze
44- .limit(5 ).analyze
43+ .limit(10 )
44+ .limit(5 )
4545
46- val optimized = Optimize (originalQuery)
46+ val optimized = Optimize (originalQuery.analyze )
4747 val correctAnswer =
4848 testRelation
4949 .select(' a )
@@ -56,11 +56,11 @@ class CombiningLimitsSuite extends OptimizerTest {
5656 val originalQuery =
5757 testRelation
5858 .select(' a )
59- .limit(2 ).analyze
60- .limit(7 ).analyze
61- .limit(5 ).analyze
59+ .limit(2 )
60+ .limit(7 )
61+ .limit(5 )
6262
63- val optimized = Optimize (originalQuery)
63+ val optimized = Optimize (originalQuery.analyze )
6464 val correctAnswer =
6565 testRelation
6666 .select(' a )
You can’t perform that action at this time.
0 commit comments