Description
Hive masking policies don't recognize {OWNER} user. Consider the following masking policy:
resource: database=db1, table=tbl1, column=col1 policyItem-1: user={OWNER}, accessType=select, maskType=MASK_NONE policyItem-2: group=public, accessType=select, maskType=MASK_NULL
Expected result:
When column db1.tbl1.col1 is accessed by the owner of table, the column value should be returned to the user without applying any masking. For all other users, NULL value should be returned.
Observed result:
Value returned for all users is NULL, even for the owner of the table.