You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Daniel Becker (Jira)" <ji...@apache.org> on 2022/11/08 15:42:00 UTC
[jira] [Created] (IMPALA-11712) Sort out column masking with complex types
Daniel Becker created IMPALA-11712:
--------------------------------------
Summary: Sort out column masking with complex types
Key: IMPALA-11712
URL: https://issues.apache.org/jira/browse/IMPALA-11712
Project: IMPALA
Issue Type: Improvement
Components: Frontend
Reporter: Daniel Becker
We determine whether a SlotDescriptor created from a star expanded path should be registered for column masking based on the path of the star item:
??Empty matched types means this is expanded from star of a catalog table.??
??For star of complex types, e.g. my_struct.*, my_array.*, my_map.*, the matched??
??types will have the complex type so it's not empty.??
[https://github.com/apache/impala/blob/b28da054f3595bb92873433211438306fc22fbc7/fe/src/main/java/org/apache/impala/analysis/SelectStmt.java#L659]
However, this comment may be wrong because in the query
{code:java}
select a.* from mix_struct_array t, t.struct_in_arr a;{code}
{{getMatchedTypes()}} returns an empty list for the star path even though it is not from a catalog table.
We should also find out whether we can determine from the expanded path alone (and not the path of the star item) whether we need to register it for column masking, for example by checking if it is within a complex type.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org