You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2020/02/05 05:48:00 UTC
[jira] [Resolved] (IMPALA-9330) Support masking queries containing
correlated collection references
[ https://issues.apache.org/jira/browse/IMPALA-9330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Quanlong Huang resolved IMPALA-9330.
------------------------------------
Fix Version/s: Impala 3.4.0
Resolution: Fixed
> Support masking queries containing correlated collection references
> -------------------------------------------------------------------
>
> Key: IMPALA-9330
> URL: https://issues.apache.org/jira/browse/IMPALA-9330
> Project: IMPALA
> Issue Type: Improvement
> Reporter: Quanlong Huang
> Assignee: Quanlong Huang
> Priority: Critical
> Fix For: Impala 3.4.0
>
>
> 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:
> {code:sql}
> select t.id, a.pos, a.item from complextypestbl t, t.int_arr a;
> {code}
> Because its AST will be rewritten to the AST of
> {code:sql}
> select t.id, a.pos, a.item from (
> select cast(id * 100 as BIGINT) id
> from complextypestbl
> ) t, t.int_arr a;
> {code}
> Currently, the analyzer can't resolve "t.int_arr" correctly.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)