Pranav Yogi Lodha created IMPALA-14968:
------------------------------------------

             Summary: TestRangerWithCalcite.test_table_masking_calcite_frontend 
fails with AssertionError
                 Key: IMPALA-14968
                 URL: https://issues.apache.org/jira/browse/IMPALA-14968
             Project: IMPALA
          Issue Type: Bug
            Reporter: Pranav Yogi Lodha


h3. Error Message

AssertionError: b'\{"statusCode":1,"msgDesc":"(0) Validation failure: error 
code[3010], reason[Another policy already exists for 
matchi...t_column_masking_c17345914], service=[test_impala]], field[resources], 
subfield[null], type[semantically incorrect] "}' assert 300 > 400 + where 400 = 
<Response [400]>.status_code
h3. Stacktrace

authorization/test_ranger.py:3767: in test_table_masking_calcite_frontend 
self._test_table_masking_calcite_frontend(unique_name) self = 
<test_ranger.TestRangerWithCalcite object at 0xfffdc2695700> unique_name = 
'test_table_masking_calcite_frontend_22302a43' 
authorization/test_ranger.py:1680: in _test_table_masking_calcite_frontend 
TestRanger._add_column_masking_policy( admin_client = 
<tests.common.impala_connection.ImpylaHS2Connection object at 0xfffdc2695310> 
database = 'functional' grantee_user = 'non_owner' non_owner_client = 
<tests.common.impala_connection.ImpylaHS2Connection object at 0xfffdc2695100> 
policy_cnt = 0 self = <test_ranger.TestRangerWithCalcite object at 
0xfffdc2695700> table_1 = 'alltypes' table_2 = 'alltypestiny' 
test_select_query_1 = 'select id from functional.alltypes' test_select_query_2 
= 'select id from functional.alltypestiny' unique_name = 
'test_table_masking_calcite_frontend_22302a43' 
authorization/test_ranger.py:673: in _add_column_masking_policy assert 300 > 
r.status_code >= 200, r.content E AssertionError: 
b'\{"statusCode":1,"msgDesc":"(0) Validation failure: error code[3010], 
reason[Another policy already exists for matchi...t_column_masking_c17345914], 
service=[test_impala]], field[resources], subfield[null], type[semantically 
incorrect] "}' E assert 300 > 400 E + where 400 = <Response [400]>.status_code 
column = 'id' data = \{'dataMaskPolicyItems': [{'accesses': [{'isAllowed': 
True, 'type': 'select'}], 'dataMaskInfo': \{'dataMaskType': 'CUSTO...: False, 
'values': ['functional']}, 'table': \{'isExcludes': False, 'isRecursive': 
False, 'values': ['alltypes']}}, ...} db = 'functional' mask_type = 'CUSTOM' 
policy_name = 'test_table_masking_calcite_frontend_22302a430' r = <Response 
[400]> table = 'alltypes' user = 'non_owner' value_expr = 'id * 100'



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to