You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2009/02/03 02:57:59 UTC
[jira] Resolved: (HIVE-263) TCTLSeparatedProtocol should use UTF-8
to decode the data
[ https://issues.apache.org/jira/browse/HIVE-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zheng Shao resolved HIVE-263.
-----------------------------
Resolution: Fixed
Fix Version/s: 0.2.0
Release Note: HIVE-263. TCTLSeparatedProtocol should use UTF-8 to encode/decode the data. (zshao)
Hadoop Flags: [Reviewed]
Committed revision 740187. (for trunk)
Committed revision 740188. (for branch 0.2)
> 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
> Fix For: 0.2.0
>
> Attachments: HIVE-263.1.patch, HIVE-263.2.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.