You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "yongfeng gao (Jira)" <ji...@apache.org> on 2020/03/05 14:54:00 UTC
[jira] [Created] (CALCITE-3843) Calcite supports Chinese issues
yongfeng gao created CALCITE-3843:
-------------------------------------
Summary: 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
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)