ShaoDaTao opened a new issue, #3203:
URL: https://github.com/apache/arrow-datafusion/issues/3203

   **Describe the bug**
   datafusion cannot recognize chinese charactors.
   
   **To Reproduce**
   1. simply create a csv file, put the title as name in chinese charactor: 扫描人
   2. run the rust code as below,will get the parse error: Error: 
SQL(ParserError("Expected an expression:, found: 扫"))
   
   `use datafusion::prelude::*;
   
   #[tokio::main]
   async fn main() -> datafusion::error::Result<()> {
     // register the table
     let ctx = SessionContext::new();
     ctx.register_csv("example", "lite.csv", CsvReadOptions::new()).await?;
   
     // create a plan to run a SQL query
     let df = ctx.sql("SELECT distinct 扫描人 FROM example").await?;
   
     // execute and print results
     df.show().await?;
     Ok(())
   }`
   
   **Expected behavior**
   make datafusion recognize the chinese charactors.
   
   **Additional context**
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to