This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch firebolt-old-quote
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 20b7c05b1f8c9d2ae1048288a6dd1f6519e9ebe1
Author: Beto Dealmeida <[email protected]>
AuthorDate: Fri Feb 21 11:07:06 2025 -0600

    fix(firebolt): allow backslach escape for single quotes
---
 superset/sql/dialects/firebolt.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/superset/sql/dialects/firebolt.py 
b/superset/sql/dialects/firebolt.py
index a4767596f4..c430ea7101 100644
--- a/superset/sql/dialects/firebolt.py
+++ b/superset/sql/dialects/firebolt.py
@@ -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}
 

Reply via email to