Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 2.12.0, Impala 3.2.0
-
None
-
ghx-label-2
Description
This line is skipped when analyzer.getTable() throws few lines above:
https://github.com/apache/impala/blob/cd30949102425e28adadb51232653d910ac8422f/fe/src/main/java/org/apache/impala/analysis/DropTableOrViewStmt.java#L117
As a result a drop table statement (with permissions ON) can throw NullPointerException here:
https://github.com/apache/impala/blob/master/fe/src/main/java/org/apache/impala/authorization/sentry/SentryCatalogdAuthorizationManager.java#L381