Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying Chinese Characters in Apache Drill #2890

Open
1239068511 opened this issue Mar 24, 2024 · 1 comment
Open

Querying Chinese Characters in Apache Drill #2890

1239068511 opened this issue Mar 24, 2024 · 1 comment
Labels

Comments

@1239068511
Copy link

Dear Apache Drill Community,

I've encountered an issue when querying Chinese characters in Apache Drill. It seems that whenever I execute a query containing Chinese characters, they are automatically converted to Unicode. For example, when I execute the query:

go

SELECT name FROM `mysql`.`demo`.`表a` WHERE name = '张三'

The result returns:

go

SELECT `name` FROM `demo`.`表a` WHERE `name` = u&'\5f20\4e09'

Instead of returning the expected Chinese characters, they are represented as Unicode escape sequences.

I've tried adjusting the character set settings in Apache Drill's configuration files and JDBC connection strings, but the issue persists. Is there a specific configuration or workaround to prevent Apache Drill from automatically converting Chinese characters to Unicode?

Any assistance or guidance on resolving this issue would be greatly appreciated.

Thank you

@1239068511 1239068511 added the bug label Mar 24, 2024
@shfshihuafeng
Copy link
Contributor

shfshihuafeng commented Mar 25, 2024

i think it caused by calcite .you can rewrite quoteStringLiteral method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants