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

SHOW CREATE VIEW on a view that references built-in functions requires access to the built-in database

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 3.0, Impala 2.12.0
    • Impala 3.1.0
    • Frontend
    • ghx-label-9

    Description

      [localhost:21000] default> create table foo.t(i int);
      [localhost:21000] default> create view foo.v1 as select count(*) from foo.t;
      [localhost:21000] default> create view foo.v2 as select * from foo.t;
      [localhost:21000] default> grant select on database foo to role foo_role;
      
      [localhost:21000] default> show create view foo.v1;
      Query: show create view foo.v1
      ERROR: AuthorizationException: User 'impdev' does not have privileges to see the definition of view 'foo.v1'.
      
      [localhost:21000] default> show create view foo.v2;
      Query: show create view foo.v2
      +-----------------------+
      | result                |
      +-----------------------+
      | CREATE VIEW foo.v2 AS |
      | SELECT * FROM foo.t   |
      +-----------------------+
      Fetched 1 row(s) in 0.01s
      

      Attachments

        Issue Links

          Activity

            People

              fredyw Fredy Wijaya
              fredyw Fredy Wijaya
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: