Details
-
Improvement
-
Status: Reopened
-
Minor
-
Resolution: Unresolved
-
Impala 4.0.0, Impala 3.4.0
-
None
-
ghx-label-6
Description
select count(1) from db.test;
Both database 'db' and table 'test' are not exist. This will get error "AnalysisException: Could not resolve table reference: 'db.test'".
If enabled Ranger then get error "AuthorizationException: User 'xx' does not have privileges to execute 'SELECT' on default.db".
Actually maybe "Table does not exist: db.test" is more friendly tip . Just like 'insert into db.test' gives error "AnalysisException: Database does not exist: db".
resolvePath source code here ignores table not exist exception, and the above two errors return to the user.