924060929 opened a new pull request, #32526:
URL: https://github.com/apache/doris/pull/32526

   ## Proposed changes
   
   support data masking policy
   
   note: 
   if a user send the query
   ```sql
   select name from tbl limit 1
   ```
   and the user have row policy on `tbl.name` with the filter `name = 
'Beijing'`, and have data masking policy on `tbl.name` with the masking 
`concat(substring(name, 1, 4), '****')`, we will rewrite the query to
   ```sql
   select concat(substring(name, 1, 4), '****') as id, other_columns
   from tbl
   where name = 'Beijing' -- note that this id is from tbl, not from the alias 
in the select list
   limit 1
   ```
   
   the result would be `Beij****`


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to