Fang-Yu Rao has uploaded this change for review. ( http://gerrit.cloudera.org:8080/18561
Change subject: IMPALA-11281: Load table metadata for ResetMetadataStmt ...................................................................... IMPALA-11281: Load table metadata for ResetMetadataStmt This patch loads the metadata of the table in ResetMetadataStmt if the table is not null and the authorization provider is Ranger so that the column information of the table could be set in BaseAuthorizationChecker#authorizePrivilegeRequest(). This allows RangerAuthorizationChecker#authorizeByTableMasking() to determine whether masking is enabled for any column in the table and thus the update operation on a table where there is a masking policy defined on any column could be blocked. Testing: - Manually verified in RangerAuditLogTest that the test case that invalidates the metadata of the table 'functional.alltypestiny' could succeed on its own instead of relying on the table metadata loaded by a previous test case. Change-Id: I0c90b413974223886661697f11844d99a68fdebf --- M fe/src/main/java/org/apache/impala/analysis/ResetMetadataStmt.java M fe/src/main/java/org/apache/impala/analysis/StmtMetadataLoader.java 2 files changed, 34 insertions(+), 2 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/61/18561/1 -- To view, visit http://gerrit.cloudera.org:8080/18561 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I0c90b413974223886661697f11844d99a68fdebf Gerrit-Change-Number: 18561 Gerrit-PatchSet: 1 Gerrit-Owner: Fang-Yu Rao <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Fang-Yu Rao <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]>
