[ 
https://issues.apache.org/jira/browse/ORC-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16242547#comment-16242547
 ] 

Sandeep More commented on ORC-260:
----------------------------------

Great ! thanks [~owen.omalley] !

> masking data for Decimal might not work as expected because of a bug in 
> DecimalRedactConverter
> ----------------------------------------------------------------------------------------------
>
>                 Key: ORC-260
>                 URL: https://issues.apache.org/jira/browse/ORC-260
>             Project: ORC
>          Issue Type: Bug
>          Components: Java
>            Reporter: Sandeep More
>            Assignee: Sandeep More
>
> In the DecimalRedactConverter.maskData() function 
> {code}
> else {
>         for(int r = start; r < start + length; ++r) {
>           target.isNull[r] = source.isNull[r];
>           if (target.noNulls || !target.isNull[r]) {
>             target.vector[r].set(source.vector[r]);
>           }
> {code}
> should be 
> {code}
> else {
>         for(int r = start; r < start + length; ++r) {
>           target.isNull[r] = source.isNull[r];
>           if (target.noNulls || !target.isNull[r]) {
>             target.vector[r].set(maskDecimal(source.vector[r]));
>           }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to