mirror of
https://github.com/apache/superset.git
synced 2026-07-20 05:36:00 +00:00
When the caller passes select_columns that consists entirely of USER_DIRECTORY_FIELDS columns (e.g. ["roles"]), ModelListCore raises ValueError because its privacy filter strips all columns, leaving an empty list. Strip USER_DIRECTORY_FIELDS from select_columns before passing to run_tool (falling back to None/defaults when the filtered list is empty). The existing bypass mechanism already restores these fields in the final serialized output using ALL_RLS_COLUMNS. Adds a regression test for the ["roles"]-only select_columns edge case.