orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandeep More (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-260) masking data for Decimal might not work as expected because of a bug in DecimalRedactConverter
Date Wed, 01 Nov 2017 17:22:00 GMT
Sandeep More created ORC-260:
--------------------------------

             Summary: 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
            Priority: Normal


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)

Mime
View raw message