Skip to content

Commit

Permalink
for comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Apr 13, 2015
1 parent 6591b79 commit 0edf568
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class SqlParser extends AbstractSparkSQLParser with DataTypeParser {
}

protected lazy val start: Parser[LogicalPlan] =
( start1 | insert | cte )
start1 | insert | cte

protected lazy val start1: Parser[LogicalPlan] =
(select | ("(" ~> select <~ ")")) *
Expand Down Expand Up @@ -159,7 +159,7 @@ class SqlParser extends AbstractSparkSQLParser with DataTypeParser {
}

protected lazy val cte: Parser[LogicalPlan] =
WITH ~> rep1sep(ident ~ ( AS ~ "(" ~> start <~ ")"), ",") ~ (start1 | insert) ^^ {
WITH ~> rep1sep(ident ~ ( AS ~ "(" ~> start1 <~ ")"), ",") ~ (start1 | insert) ^^ {
case r ~ s => With(s, r.map({case n ~ s => (n, Subquery(n, s))}).toMap)
}

Expand Down

0 comments on commit 0edf568

Please sign in to comment.