You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Chunwei Lei (Jira)" <ji...@apache.org> on 2020/03/06 14:11:00 UTC
[jira] [Commented] (CALCITE-3843) Calcite supports Chinese issues
[ https://issues.apache.org/jira/browse/CALCITE-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17053449#comment-17053449 ]
Chunwei Lei commented on CALCITE-3843:
--------------------------------------
Thanks for reporting and welcome to contribute.
> Calcite supports Chinese issues
> -------------------------------
>
> Key: CALCITE-3843
> URL: https://issues.apache.org/jira/browse/CALCITE-3843
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.21.0
> Environment: First set environment variables:
> System.setProperty("calcite.default.charset", "UTF-16LE");
> System.setProperty("calcite.default.nationalcharset", "UTF-16LE");
> System.setProperty("calcite.default.collation.name", "UTF-16LE$zh_CN");
> Reporter: yongfeng gao
> Priority: Major
> Attachments: image-2020-03-05-22-43-19-249.png, image-2020-03-05-22-50-52-056.png
>
>
> When executing the statement of select * from "T_P_BoM" where "RequiredPartNo"='中' , the following error occurred : While executing SQL [SELECT * FROM "T_P_BoM" WHERE "RequiredPartNo" = u&'\4e2d'] on JDBC sub-schema.
>
> I think there is an error in the judgment here, which caused the subsequent process to enter quoteStringLiteralUnicode.
> [https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/rex/RexLiteral.java]
> !image-2020-03-05-22-43-19-249.png|width=564,height=105!
>
> The code should be changed as follow:
> !image-2020-03-05-22-50-52-056.png|width=534,height=109!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)