hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joydeep Sen Sarma (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-263) TCTLSeparatedProtocol should use UTF-8 to decode the data
Date Mon, 02 Feb 2009 22:49:59 GMT

    [ https://issues.apache.org/jira/browse/HIVE-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669779#action_12669779
] 

Joydeep Sen Sarma commented on HIVE-263:
----------------------------------------

we also need to encode using Text i think.

also - metadatatypedserde - i guess we need to fix that as well?

> TCTLSeparatedProtocol should use UTF-8 to decode the data
> ---------------------------------------------------------
>
>                 Key: HIVE-263
>                 URL: https://issues.apache.org/jira/browse/HIVE-263
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>         Attachments: HIVE-263.1.patch
>
>
> TCTLSeparatedProtocol now uses the default character encoding. We should use UTF8 from
hadoop Text class:
> Now:
> {code}
>           String row = new String(buf, 0, length);
> {code}
> We want:
> {code}
>           String row;
>           try {
>             row = Text.decode(buf, 0, length);
>           } catch (CharacterCodingException e) {
>             throw new RuntimeException(e);
>           }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message