[
https://issues.apache.org/jira/browse/ORC-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16619675#comment-16619675
]
Owen O'Malley commented on ORC-406:
-----------------------------------
Is someone actively working on this before I roll a 1.5.3 release candidate?
> ORC: Char(n) and Varchar(n) writers truncate to n bytes & corrupts multi-byte
> data
> ----------------------------------------------------------------------------------
>
> Key: ORC-406
> URL: https://issues.apache.org/jira/browse/ORC-406
> Project: ORC
> Issue Type: Bug
> Affects Versions: 1.5.2
> Reporter: Gopal V
> Assignee: Gopal V
> Priority: Major
>
> https://github.com/apache/orc/blob/master/java/core/src/java/org/apache/orc/impl/writer/CharTreeWriter.java#L41
> {code}
> itemLength = schema.getMaxLength();
> padding = new byte[itemLength];
> }
> {code}
> https://github.com/apache/orc/blob/master/java/core/src/java/org/apache/orc/impl/writer/VarcharTreeWriter.java#L48
> {code}
> if (vector.noNulls || !vector.isNull[0]) {
> int itemLength = Math.min(vec.length[0], maxLength);
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)