Skip to content

Commit

Permalink
Update superset/models/helpers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
  • Loading branch information
geido and betodealmeida authored Oct 4, 2024
1 parent 4f326db commit c1815a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/models/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,7 @@ def values_for_column( # pylint: disable=too-many-locals
qry = qry.where(self.get_fetch_values_predicate(template_processor=tp))

rls_filters = self.get_sqla_row_level_filters(template_processor=tp)
if rls_filters:
qry = qry.where(and_(*rls_filters))
qry = qry.where(and_(*rls_filters))

with self.database.get_sqla_engine() as engine:
sql = str(qry.compile(engine, compile_kwargs={"literal_binds": True}))
Expand Down

0 comments on commit c1815a8

Please sign in to comment.