Quanlong Huang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17235


Change subject: IMPALA-10609: Fix NPE in resolving table masks in 
StmtMetadataLoader
......................................................................

IMPALA-10609: Fix NPE in resolving table masks in StmtMetadataLoader

When creating a StmtMetadataLoader, the 'user' field could be null in
places that don't need to resolve column-masking/row-filtering policies.
E.g. in processing GetColumns HS2 operation, or some FE tests.

This patch skips resolving the table masks in such cases to avoid
NullPointerException.

Tests:
 - Run CORE tests and verified no NullPointerException found.

Change-Id: I7aa20458b02e8a93a871b6dd875decfab82c4eae
---
M fe/src/main/java/org/apache/impala/analysis/StmtMetadataLoader.java
M fe/src/test/java/org/apache/impala/common/FrontendFixture.java
2 files changed, 12 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/35/17235/1
--
To view, visit http://gerrit.cloudera.org:8080/17235
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7aa20458b02e8a93a871b6dd875decfab82c4eae
Gerrit-Change-Number: 17235
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <[email protected]>

Reply via email to