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

Inaccurate tips with 'select' on not exist table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • 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

          People

            Unassigned Unassigned
            weizisheng Weizisheng
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: