mirror of
https://github.com/apache/superset.git
synced 2026-05-09 09:55:19 +00:00
RLS and CLS working
This commit is contained in:
@@ -1536,11 +1536,14 @@ class SQLStatement(BaseSQLStatement[exp.Expression]):
|
||||
# Without schema: qualifies single-table queries, partial for JOINs.
|
||||
from sqlglot.optimizer.qualify import qualify
|
||||
|
||||
# Only expand stars if schema is provided (from DAR with feature flag enabled)
|
||||
# to avoid potential errors in other contexts
|
||||
self._parsed = qualify(
|
||||
self._parsed,
|
||||
schema=schema,
|
||||
dialect=self._dialect,
|
||||
validate_qualify_columns=False,
|
||||
expand_stars=bool(schema),
|
||||
)
|
||||
|
||||
transformer = CLSTransformer(rules, self._dialect)
|
||||
|
||||
Reference in New Issue
Block a user