[
https://issues.apache.org/jira/browse/ORC-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16211711#comment-16211711
]
Owen O'Malley commented on ORC-256:
-----------------------------------
I'd suggest dropping the parentheses.
To be clear, the definition of the ranges is "<first>:<last>" which includes
characters from *first* to *last* inclusively. The first character in the
string is position 0, the second is 1, and so on. The string is also numbered
backwards so the last character is position -1 and the previous character is
-2, etc.
In your 2.2 example "-13,0" is a backwards range (it would be normalized as
"3,0"), which should not add any characters.
2.2 would more typically be expressed as "0:4,-4:-1" which means leave
characters 0 to 4 inclusive and -4 to -1 inclusive unmasked.
> Add unmasked ranges option for redact mask
> ------------------------------------------
>
> Key: ORC-256
> URL: https://issues.apache.org/jira/browse/ORC-256
> Project: ORC
> Issue Type: Sub-task
> Reporter: Owen O'Malley
> Assignee: Sandeep More
>
> It would be good to extend the Redact DataMask so that you could leave
> certain ranges of strings unmasked.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)