zfeng0531 opened a new issue, #26115:
URL: https://github.com/apache/doris/issues/26115

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   doris-2.0.0-rc04-96bb9a7
   
   ### What's Wrong?
   
   升级后部分账号只有视图权限的账号查询报错,经过验证后,需要开通对应视图底表的权限才能正确访问视图
   
![image](https://github.com/apache/doris/assets/30383613/def2be23-c5c8-446b-a9bf-3bd822942b2f)
   
   SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = Permission denied: user 
['default_cluster:testzg1030'@'%'] does not have privilege for [priv predicate: 
OR, Admin_priv Select_priv ] command on 
[internal].[default_cluster:demo].[api_mdsj]
   
   ### What You Expected?
   
   对账号授权视图查看 不需再开通底表的查询权限
   
   ### How to Reproduce?
   
   构建一个表a和对应的视图v_a, 只授权视图v_a的查看权限,执行查询语句,报错
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to