fix(firebolt): allow backslach escape for single quotes (#32350)

This commit is contained in:
Beto Dealmeida
2025-02-24 11:12:34 -05:00
committed by GitHub
parent ace8a3adb7
commit 22fe985cfc
2 changed files with 25 additions and 1 deletions

View File

@@ -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}