mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
feat: initial Dremio sqlglot dialect (#33847)
This commit is contained in:
@@ -87,7 +87,9 @@ class SQLParsingLibraryImportChecker(BaseChecker):
|
||||
def _is_disallowed(self, file_path: Path, root_mod: str) -> bool:
|
||||
# True if sqlglot is imported outside superset/sql,
|
||||
# or if any forbidden library is imported anywhere
|
||||
in_superset_sql = file_path.match("**/superset/sql/**")
|
||||
in_superset_sql = file_path.match("**/superset/sql/**/*.py") or file_path.match(
|
||||
"**/superset/sql/*.py"
|
||||
)
|
||||
return (root_mod == "sqlglot" and not in_superset_sql) or root_mod in {
|
||||
"sqlparse",
|
||||
"sqloxide",
|
||||
|
||||
Reference in New Issue
Block a user