Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19936

explain on a query failing in secure cluster whereas query itself works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Hooks
    • None

    Description

      On a secured cluster with Sentry integrated run the following queries

      create table foobar (id int) partitioned by (val int);
      explain alter table foobar add partition (val=50);
      

      The explain query will fail with the following exception while the query itself works with no issue.

      Error while compiling statement: FAILED: SemanticException No valid privileges
      Required privilege( Table) not available in output privileges
      The required privileges: (state=42000,code=40000)

      Attachments

        1. HIVE-19936.1.patch
          0.8 kB
          Aihua Xu

        Activity

          People

            aihuaxu Aihua Xu
            aihuaxu Aihua Xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: