| CPC G06F 21/6227 (2013.01) [G06F 16/2282 (2019.01); G06F 21/604 (2013.01); G06F 21/62 (2013.01); G06F 21/6218 (2013.01); G06F 2221/2141 (2013.01)] | 21 Claims |

|
1. A method comprising:
storing a table in a first account of a multi-tenant network-based data system, the table having a first row level security policy attached, the table and the first row level security policy being stored independently;
sharing, by the first account, the table with the attached first row level security policy with a second account in the multi-tenant network-based data system, the first row level security policy limiting at least one row from being accessible to the second account;
attaching a second row level security policy to the shared table by the second account, the second row level security policy being stored independently of the table;
receiving a query relating to the table;
generating, by at least one server of the network-based data system, a plan to execute the query, the plan including a set of operators and arranging a first operator over a second operator of the set of operators to not reveal information restricted by the first row level security policy or the second row level security policy; and
executing, by one or more execution nodes assigned by the at least one server, the plan to generate a result for the query.
|