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

Referencing non-existent table/database in CTE without any privilege results in AnalysisException and not AuthorizationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.10.0, Impala 2.11.0, Impala 2.12.0
    • None
    • Frontend
    • ghx-label-5

    Description

      A CTE from non-existent database.
      [localhost:21000] default> with t as (select id from nodb.alltypes) select * from t;
      Query: with t as (select id from nodb.alltypes) select * from t
      Query submitted at: 2018-05-09 12:31:29 (Coordinator: http://impdev-dev:25000)
      ERROR: AnalysisException: Could not resolve table reference: 'nodb.alltypes'
      
      A normal select from non-existent database.
      [localhost:21000] default> select id from nodb.alltypes; Query: select id from nodb.alltypes
      Query submitted at: 2018-05-09 12:32:58 (Coordinator: http://fwijaya-dev:25000)
      ERROR: AuthorizationException: User 'impdev' does not have privileges to execute 'SELECT' on: nodb.alltypes
      

      Attachments

        Activity

          People

            wzhou Wenzhe Zhou
            fredyw Fredy Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: