You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2021/09/30 01:42:00 UTC
[jira] [Updated] (IMPALA-10936)
StmtMetadataLoader::collectPolicyTables() should handle
FailedLoadLocalTable without NPE
[ https://issues.apache.org/jira/browse/IMPALA-10936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Quanlong Huang updated IMPALA-10936:
------------------------------------
Priority: Critical (was: Major)
> StmtMetadataLoader::collectPolicyTables() should handle FailedLoadLocalTable without NPE
> ----------------------------------------------------------------------------------------
>
> Key: IMPALA-10936
> URL: https://issues.apache.org/jira/browse/IMPALA-10936
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 4.1.0
> Reporter: Joe McDonnell
> Assignee: Quanlong Huang
> Priority: Critical
>
> If table loading fails, then it result in a FailedLoadLocalTable, which uses this constructor for LocalTable:
> {noformat}
> protected LocalTable(LocalDb db, String tblName) {
> this.db_ = Preconditions.checkNotNull(db);
> this.name_ = tblName;
> this.ref_ = null;
> this.msTable_ = null;
> this.cols_ = null;
> this.tableStats_ = null;
> }{noformat}
> Since cols_ and other fields are null, the code in StmtMetadataLoader::collectPolicyTables(), which calls LocalTable::getColumnsInHiveOrder() will throw a NullPointerException when trying to access cols_ in getNonClusteringColumns().
> This will fail the query with a NullPointerException, even though the underlying problem came from failing to load the table metadata. We should handle this to avoid the NullPointerException. That may happen as part of StmtMetadataLoader::collectPolicyTables() or StmtMetadataLoader::getMissingTables().
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org