mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
fix: add comments to SQL clause validation (#39167)
(cherry picked from commit 0b419a07f5)
This commit is contained in:
committed by
Michael S. Molina
parent
954902db1d
commit
3cbc83449f
@@ -1557,7 +1557,7 @@ def sanitize_clause(clause: str, engine: str) -> str:
|
||||
return Dialect.get_or_raise(dialect).generate(
|
||||
statement._parsed, # pylint: disable=protected-access
|
||||
copy=True,
|
||||
comments=False,
|
||||
comments=True,
|
||||
pretty=False,
|
||||
)
|
||||
except SupersetParseError as ex:
|
||||
|
||||
Reference in New Issue
Block a user