# Why can SELECT \* behave differently across engines on a OneLake table with column security?

Exam: DP-600 — Implementing Analytics Solutions Using Microsoft Fabric
Knowledge domain: Maintain a data analytics solution (25–30%)
Updated: 2026-11-19T05:35:22.857386+00:00
HTML: https://learningpathx.com/faq/DP-600/dp600-onelake-select-star-security-errors.html

## Also asked as

- Why does a OneLake CLS-protected SELECT \* succeed in Spark but fail through a SQL endpoint?
- How should I troubleshoot cross-engine query differences caused by OneLake column-level security?

OneLake column-level security can enforce the same permitted data boundary while different engines return different query outcomes. For a table with restricted columns, Microsoft documents that Spark notebooks return only allowed columns for SELECT \*, while the SQL analytics endpoint and semantic-model paths return an error when the query requests inaccessible columns.

Do not remove CLS merely to make a broad query succeed. Instead:

1. Check the querying identity, its complete role memberships, and the allowed-column list.
2. Query an explicit list of allowed columns through the affected engine.
3. Attempt to query a restricted column and confirm that no restricted values are returned.
4. If even permitted queries fail, check policy syntax, schema changes, table-format support, and unsupported combinations of RLS and CLS roles.

Authorized engines can filter according to the policy. An unauthorized third-party engine cannot safely enforce row or column restrictions and can be blocked from reading the table. Some experiences may reveal a secured column's name; that does not mean its data values are readable.

The expected result must be defined for the engine being tested. A query error and a filtered result can both be legitimate enforcement outcomes.

See Microsoft's [documented OneLake enforcement behavior](https://learn.microsoft.com/en-us/fabric/onelake/security/table-column-row-security).

Source: [DP-600: Securing and Governing Microsoft Fabric Analytics Solutions](https://learningpathx.com/news/dp-600-securing-and-governing-microsoft-fabric-analytics-solutions.html)
