You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(rls): prevent double-apply when converting physical dataset to virtual
When a physical dataset with RLS rules is converted to a virtual dataset
via the Edit modal, the dataset's own RLS predicate was injected twice:
once on the outer WHERE (lookup by SqlaTable.id) and again inside the
virtual SQL (lookup by database + schema + table_name, which still
matched the dataset itself).
Pass the virtual dataset's id into apply_rls / get_predicates_for_table
so the inner-SQL lookup excludes it. The outer WHERE keeps applying the
RLS exactly once.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments