apache / apache/datafusion

Add ability to process CSV files containing invalid UTF-8 characters

Open
#5,204 7 comments 0 reactions 1 assignee Claimed by @Posmac View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
I have a dataset with invalid UTF-8 characters. Spark is happy to query it, but DataFusion fails with an error. My workaround is to preprocess the file using `String::from_utf8_lossy` but it would be great if I could just set an option in `CsvReadOptions` to have DataFusion do this for me.

**Describe the solution you'd like**
As described.

**Describe alternatives you've considered**
Just preprocess my inputs.

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.