Mohan
08/04/2026, 7:20 AMselect phone from test.user limit 2
(select phone from test.user limit 2)
Mask not working(ranger bypass) for below - showing actual phone values
with phonebase as (select phone from test.user limit 2)
(select phone from phonebase)
is there any fix from starrocks plugin for this case in any later versions of plugin?Rocky
08/04/2026, 7:21 AMstarrocks-ranger-plugin JAR that corresponds to your upgraded FE version, as some logic resides in the plugin's interaction with the FE's Access Controller.
3. Workaround (Temporary): If you cannot upgrade immediately, you may find that using nested subqueries instead of CTEs sometimes forces the masking logic to trigger more reliably in older versions, though this is not guaranteed for all complex plans:
sql
-- Potentially works in older versions where WITH fails
SELECT phone FROM (SELECT phone FROM test.user LIMIT 2) t;
For further tracking or if the issue persists after upgrading, it is recommended to check the official StarRocks GitHub issues for any ongoing Nereids planner regressions related to Ranger.
References
• administration/user_privs/authorization/ranger_plugin.md