Skip to content

Commit

Permalink
support with
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyang committed Mar 3, 2015
1 parent 03f1097 commit 1cc8c15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class SqlParser extends AbstractSparkSQLParser {

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

protected lazy val projection: Parser[Expression] =
Expand Down

0 comments on commit 1cc8c15

Please sign in to comment.