You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "jin adachi (JIRA)" <ji...@apache.org> on 2011/04/30 13:32:03 UTC
[jira] [Created] (HIVE-2137) JDBC driver doesn't encode string
properly.
JDBC driver doesn't encode string properly.
-------------------------------------------
Key: HIVE-2137
URL: https://issues.apache.org/jira/browse/HIVE-2137
Project: Hive
Issue Type: Bug
Components: JDBC
Affects Versions: 0.7.0, 0.6.0
Reporter: jin adachi
JDBC driver decode string by client encoding.
It ignore server encoding.
For example,
server = Linux (utf-8)
client = Windows (shift-jis : it's japanese charset)
It makes character corruption in the client.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Attachment: (was: HiveStatement.patch)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HADOOP-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Attachment: HIVE-2137.patch
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HIVE-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "jokang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443045#comment-13443045 ]
jokang commented on HIVE-2137:
------------------------------
I have ran into the same trouble. Thank you for your patches.
But, I think I had found some way easier to solve the problem by setting your encoding of .class files when compiling the source files.
here is the command:
javac -encoding UTF-8 XX.java
or you can set it in eclipse.
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HIVE-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Affects Version/s: (was: 0.6.0)
0.9.0
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HiveConnection.patch, HivePreparedStatement.patch, HiveResultSet.patch, HiveStatement.patch, JdbcSessionState.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Ashutosh Chauhan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134713#comment-13134713 ]
Ashutosh Chauhan commented on HIVE-2137:
----------------------------------------
@Jin,
https://cwiki.apache.org/confluence/display/Hive/HowToContribute has guidelines on how to contribute. Essentially you need to generate a one svn friendly patch instead each for different files.
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.6.0
> Reporter: Jin Adachi
> Attachments: HiveConnection.patch, HivePreparedStatement.patch, HiveResultSet.patch, HiveStatement.patch, JdbcSessionState.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Attachment: (was: JdbcSessionState.patch)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HADOOP-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Zhou Kang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhou Kang updated HIVE-2137:
----------------------------
Description: (was: ,)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HIVE-2137.patch
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Attachment: (was: HiveResultSet.patch)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HADOOP-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Affects Version/s: (was: 0.7.0)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.6.0
> Reporter: Jin Adachi
> Attachments: HiveConnection.patch, HivePreparedStatement.patch, HiveResultSet.patch, HiveStatement.patch, JdbcSessionState.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Attachment: (was: HiveConnection.patch)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HADOOP-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "jin adachi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027321#comment-13027321 ]
jin adachi commented on HIVE-2137:
----------------------------------
This patch can set character encoding in the connection string.
For example,
jdbc:hive://10.68.160.236:10000/default
->
jdbc:hive://10.68.160.236:10000/default?characterEncoding=UTF-8
If you set "characterEncoding", string is decoded by character code which was set.
If not set, it's the same as before.
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.6.0, 0.7.0
> Reporter: jin adachi
> Attachments: HiveConnection.patch, HivePreparedStatement.patch, HiveResultSet.patch, HiveStatement.patch, JdbcSessionState.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "jin adachi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jin adachi updated HIVE-2137:
-----------------------------
Attachment: JdbcSessionState.patch
HiveStatement.patch
HiveResultSet.patch
HivePreparedStatement.patch
HiveConnection.patch
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.6.0, 0.7.0
> Reporter: jin adachi
> Attachments: HiveConnection.patch, HivePreparedStatement.patch, HiveResultSet.patch, HiveStatement.patch, JdbcSessionState.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Zhou Kang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhou Kang updated HIVE-2137:
----------------------------
Description:
JDBC driver decode string by client encoding.
It ignore server encoding.
For example,
server = Linux (utf-8)
client = Windows (shift-jis : it's japanese charset)
It makes character corruption in the client.
was:JDBC driver doesn't encode string properly.
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HIVE-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Zhou Kang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhou Kang updated HIVE-2137:
----------------------------
Description: JDBC driver doesn't encode string properly.
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HIVE-2137.patch
>
>
> JDBC driver doesn't encode string properly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Attachment: (was: HivePreparedStatement.patch)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HADOOP-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Attachment: (was: HADOOP-2137.patch)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HIVE-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139531#comment-13139531 ]
Jin Adachi commented on HIVE-2137:
----------------------------------
Sorry for my patches were not conformed to guidance.
I re-maked a patch.
This new patch supports fixed charset "UTF-8".
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HADOOP-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Jin Adachi (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Adachi updated HIVE-2137:
-----------------------------
Attachment: HADOOP-2137.patch
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HADOOP-2137.patch
>
>
> JDBC driver decode string by client encoding.
> It ignore server encoding.
> For example,
> server = Linux (utf-8)
> client = Windows (shift-jis : it's japanese charset)
> It makes character corruption in the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2137) JDBC driver doesn't encode string
properly.
Posted by "Zhou Kang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhou Kang updated HIVE-2137:
----------------------------
Description: , (was: JDBC driver decode string by client encoding.
It ignore server encoding.
For example,
server = Linux (utf-8)
client = Windows (shift-jis : it's japanese charset)
It makes character corruption in the client.)
> JDBC driver doesn't encode string properly.
> -------------------------------------------
>
> Key: HIVE-2137
> URL: https://issues.apache.org/jira/browse/HIVE-2137
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.9.0
> Reporter: Jin Adachi
> Attachments: HIVE-2137.patch
>
>
> ,
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira