Patent ID: 11880491
Assignee: SNOWFLAKE INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A system comprising:
at least one hardware processor; and
at least one memory storing instructions that cause the at least one hardware processor to perform operations comprising:
accessing a query plan that when executed causes access of stored data from a specified entity of a database system; and
during execution of the query plan:
determining a set of tags assigned to the specified entity;
determining a set of masking policies assigned to at least one tag in the set of tags, and
applying at least one masking policy, from the set of masking policies, on the specified entity by applying a mask to at least a portion of the stored data from the specified entity prior to the stored data being accessed for the query plan, the mask being applied to at least the portion of the stored data according to a masking definition specified in the at least one masking policy assigned to the at least one tag, the masking definition defining a masking function, the applying of the mask to at least the portion of the stored data comprising providing access to the stored data by returning the masking function in place of a reference to the specified entity.