Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11245

Inaccurate tips with 'select' on not exist table

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 4.0.0, Impala 3.4.0
    • None
    • Frontend
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            weizisheng Weizisheng

            Dates

              Created:
              Updated:

              Slack

                Issue deployment