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

Crash on parsing sql query with Cyrillic letters #184

Closed
alamb opened this issue Apr 26, 2021 · 2 comments
Closed

Crash on parsing sql query with Cyrillic letters #184

alamb opened this issue Apr 26, 2021 · 2 comments
Labels
datafusion Changes in the datafusion crate

Comments

@alamb
Copy link
Contributor

alamb commented Apr 26, 2021

Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-11731

Hello,

I'm using DataFusion to query data from my csv file. The file contains columns with Cyrillic letters and when I write query like this one, I get a crash.

Code sample:
{code}
let mut ctx = ExecutionContext::new();
let csv_file = CsvFile::try_new(args.input.as_path().to_str().unwrap(), CsvReadOptions::new())?;
ctx.register_table("transactions", Arc::new(csv_file));
let df = ctx.sql("SELECT "ДАТА" FROM transactions")?;
let results = df.collect().await?;
log::info!("result: {:?}", results);
{code}

Stack trace: [^StackTrace.txt]

@alamb alamb added the datafusion Changes in the datafusion crate label Apr 26, 2021
@Jefffrey
Copy link
Contributor

Fixed by 5c5a0bb

@Dandandan
Copy link
Contributor

Thanks @Jefffrey

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

No branches or pull requests

3 participants