Skip to content

Commit 227eb17

Browse files
committed
bq: allow aliases with backtick quoting
1 parent 56fc202 commit 227eb17

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/parser.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,9 @@ impl<'a> Parser<'a> {
20282028
// ignore the <separator> and treat the multiple strings as
20292029
// a single <literal>."
20302030
Token::SingleQuotedString(s) => Ok(Some(Ident::with_quote('\'', s))),
2031+
Token::BacktickQuotedString(s) if dialect_of!(self is BigQueryDialect) => {
2032+
Ok(Some(Ident::with_quote('`', s)))
2033+
}
20312034
not_an_ident => {
20322035
if after_as {
20332036
return self.expected("an identifier after AS", not_an_ident);

0 commit comments

Comments
 (0)