You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "haohuaijin (via GitHub)" <gi...@apache.org> on 2023/10/21 04:22:29 UTC
[I] Error when parsing numbers exceeding `INT64::MAX` in a csv file [arrow-datafusion]
haohuaijin opened a new issue, #7894:
URL: https://github.com/apache/arrow-datafusion/issues/7894
### Describe the bug
When I want to run sql `select * from aggregate_test_100.csv`, I encounter the following error.
```
Error: ArrowError(ParseError("Error while parsing value 14857091259186476033 for column 9 at line 3"))
```
### To Reproduce
```rust
#[tokio::main]
async fn main() -> Result<()> {
// create local execution context
let ctx = SessionContext::new();
let testdata = datafusion::test_util::arrow_test_data();
// register csv file with the execution context
ctx.register_csv(
"aggregate_test_100",
&format!("{testdata}/csv/aggregate_test_100.csv"),
CsvReadOptions::new(),
)
.await?;
// execute the query
let df = ctx.sql("select c10 from aggregate_test_100")
.await?;
// print the results
df.show().await?;
}
```
the `aggregate_test_100.csv` is located in `testing/data/csv/`.
### Expected behavior
correct run the sql `select * from aggregate_test_100.csv`
### Additional context
_No response_
--
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error when parsing numbers exceeding `INT64::MAX` in a csv file [arrow-datafusion]
Posted by "Weijun-H (via GitHub)" <gi...@apache.org>.
Weijun-H commented on issue #7894:
URL: https://github.com/apache/arrow-datafusion/issues/7894#issuecomment-1773839508
This issue is caused by arrow-rs, not datafusion 🤔
https://github.com/apache/arrow-rs/blob/03d0505fc864c09e6dcd208d3cdddeecefb90345/arrow-csv/src/reader/mod.rs#L889-L917
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error when parsing numbers exceeding `INT64::MAX` in a csv file [arrow-datafusion]
Posted by "haohuaijin (via GitHub)" <gi...@apache.org>.
haohuaijin closed issue #7894: Error when parsing numbers exceeding `INT64::MAX` in a csv file
URL: https://github.com/apache/arrow-datafusion/issues/7894
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error when parsing numbers exceeding `INT64::MAX` in a csv file [arrow-datafusion]
Posted by "haohuaijin (via GitHub)" <gi...@apache.org>.
haohuaijin commented on issue #7894:
URL: https://github.com/apache/arrow-datafusion/issues/7894#issuecomment-1773986136
duplicate #3174
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org