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

ASF GitHub Bot commented on ORC-260:
------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/orc/pull/187


> 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
>
> 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