Skip to content

Commit a15770b

Browse files
committed
fix.
1 parent b4a4b0a commit a15770b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,9 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef] with Logging {
278278
val withWindow = withOrder.optionalMap(windows)(withWindows)
279279

280280
// LIMIT
281+
// - LIMIT ALL is the same as omitting the LIMIT clause
281282
withWindow.optional(limit) {
282-
if (ALL != null) {
283-
// LIMIT ALL is the same as omitting the LIMIT clause
284-
withWindow
285-
} else {
286-
Limit(typedVisit(limit), withWindow)
287-
}
283+
Limit(typedVisit(limit), withWindow)
288284
}
289285
}
290286

0 commit comments

Comments
 (0)