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

Support masking queries containing correlated collection references

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Impala 3.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Let's say table complextypestbl (id bigint, int_arr array<int>) has column masking policy on id: "id => id * 100". The following query is not rewritten correctly:

      select t.id, a.pos, a.item from complextypestbl t, t.int_arr a;
      

      Because its AST will be rewritten to the AST of

      select t.id, a.pos, a.item from (
        select cast(id * 100 as BIGINT) id
        from complextypestbl
      ) t, t.int_arr a;
      

      Currently, the analyzer can't resolve "t.int_arr" correctly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stigahuang Quanlong Huang
                Reporter:
                stigahuang Quanlong Huang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: