[
https://issues.apache.org/jira/browse/ORC-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Owen O'Malley resolved ORC-260.
-------------------------------
Resolution: Fixed
Assignee: Sandeep More
I just committed this. Thanks, Sandeep!
> 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)