mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix(firebolt): allow backslach escape for single quotes (#32350)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from sqlglot import exp, generator, parser
|
||||
from sqlglot import exp, generator, parser, tokens
|
||||
from sqlglot.dialects.dialect import Dialect
|
||||
from sqlglot.helper import csv
|
||||
from sqlglot.tokens import TokenType
|
||||
@@ -84,6 +84,9 @@ class FireboltOld(Firebolt):
|
||||
function.
|
||||
"""
|
||||
|
||||
class Tokenizer(tokens.Tokenizer):
|
||||
STRING_ESCAPES = ["'", "\\"]
|
||||
|
||||
class Parser(Firebolt.Parser):
|
||||
TABLE_ALIAS_TOKENS = Firebolt.Parser.TABLE_ALIAS_TOKENS - {TokenType.UNNEST}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user