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

On Sentry enabled impala 2.1.3, one join order throws ERROR: AuthorizationException: User 'xx' does not have privileges to access: databse_yy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 2.1.2
    • Impala 2.3.0
    • None

    Description

      The following query returns results
      1.
      select h.dealer_code from view1 h left outer join view2 i on h.dealer_code = i.dealer_code limit 5;

      But the same query with reversed tables order, throws authorization error

      2.
      select h.dealer_code from view2 h left outer join view1 i on h.dealer_code = i.dealer_code limit 5;
      ERROR: AuthorizationException: User 'xx' does not have privileges to access: databse_yy

      On checking the logs, it's seen that impala is trying to get write access on the source database databse_yy on which these views are built.

      Impala should not need write access to database to just join the views.

      Attachments

        Activity

          People

            dtsirogiannis Dimitris Tsirogiannis
            mala_ck Mala Chikka Kempanna
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: