[ 
https://issues.apache.org/jira/browse/HIVE-25473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

László Bodor updated HIVE-25473:
--------------------------------
    Description: 
Currently is QOutProcessor finds a match it mask the whole line:
{code}
      for (String word : maskIfContains) {
        if (result.line.contains(word)) {
          result.line = MASK_PATTERN;
        }
      }
{code}
this can lead to masking probably useful info, e.g. in HIVE-25331 a managed 
location uri appeared, and already existing info has been masked out, so from:
{code}
newdb           location/in/test                hive_test_user  USER            
        
{code}
to:
{code}
#### A masked pattern was here ####
{code}

this is tricky, because the original line contained the location, but it was 
empty I guess, so look at it as:
{code}
newdb           location/in/test  {location_is_here_but_it_is_empty}            
hive_test_user  USER                    
{code}

> QOutProcessor should mask only match
> ------------------------------------
>
>                 Key: HIVE-25473
>                 URL: https://issues.apache.org/jira/browse/HIVE-25473
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Bodor
>            Assignee: László Bodor
>            Priority: Major
>
> Currently is QOutProcessor finds a match it mask the whole line:
> {code}
>       for (String word : maskIfContains) {
>         if (result.line.contains(word)) {
>           result.line = MASK_PATTERN;
>         }
>       }
> {code}
> this can lead to masking probably useful info, e.g. in HIVE-25331 a managed 
> location uri appeared, and already existing info has been masked out, so from:
> {code}
> newdb         location/in/test                hive_test_user  USER            
>         
> {code}
> to:
> {code}
> #### A masked pattern was here ####
> {code}
> this is tricky, because the original line contained the location, but it was 
> empty I guess, so look at it as:
> {code}
> newdb         location/in/test  {location_is_here_but_it_is_empty}            
> hive_test_user  USER                    
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to