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

SemanticException for query on view with masked table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0, 4.0.0-alpha-1
    • Parser
    • None

    Description

      When view reference is fully qualified. Following q file can be used to reproduce the issue:

      --! qt:dataset:srcpart
      --! qt:dataset:src
      set hive.mapred.mode=nonstrict;
      set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactoryForTest;
      
      create database atlasmask;
      use atlasmask;
      create table masking_test_n8 (key int, value int);
      insert into masking_test_n8 values(1,1), (2,2);
      create view testv(c,d) as select * from masking_test_n8;
      
      select * from `atlasmask`.`testv`;
      

      Attachments

        1. HIVE-21188.01.patch
          22 kB
          jcamachorodriguez
        2. HIVE-21188.02.patch
          24 kB
          jcamachorodriguez
        3. HIVE-21188.02.patch
          24 kB
          jcamachorodriguez
        4. HIVE-21188.02.patch
          24 kB
          jcamachorodriguez
        5. HIVE-21188.patch
          10 kB
          jcamachorodriguez

        Activity

          People

            jcamacho Jesús Camacho Rodríguez
            jcamacho Jesús Camacho Rodríguez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: