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

Support masking queries containing correlated collection references

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • Impala 3.4.0
    • None
    • 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

              stigahuang Quanlong Huang
              stigahuang Quanlong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: