Skip to content

Commit

Permalink
Allow dotted provider name.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Jan 18, 2016
1 parent 78f1b7c commit 1c145eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,8 @@ tableProvider
@init { pushMsg("table's provider", state); }
@after { popMsg(state); }
:
KW_USING provider=Identifier -> ^(TOK_TABLEPROVIDER $provider)
KW_USING Identifier (DOT Identifier)*
-> ^(TOK_TABLEPROVIDER Identifier+)
;

optionKeyValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ private[sql] class SparkQl(conf: ParserConf = SimpleParserConf()) extends Cataly
options.map {
case Token("TOK_TABLEOPTION", Token(key, _) :: Token(value, _) :: Nil) =>
(key, value.replaceAll("^\'|^\"|\"$|\'$", ""))
case _ => super.nodeToPlan(node)
}.asInstanceOf[Seq[(String, String)]].toMap
}
}.getOrElse(Map.empty[String, String])
Expand Down

0 comments on commit 1c145eb

Please sign in to comment.