You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
My data files in linux don't have ".csv" suffix. When I use ctx.read_csv("path/to/csv"), It read blank data rather than the data in my files or an error.
To Reproduce
Use the case in the example csv_sql.rs. I remove the csv file's suffix and cpy /path/to/aggregate_test_100.csv /path/to/aggregate_test_100.
// register csv file with the execution context
ctx.register_csv("aggregate_test_100",&format!("{testdata}/csv/aggregate_test_100"),CsvReadOptions::new(),).await?;// execute the querylet df = ctx
.sql("SELECT c1, MIN(c12), MAX(c12) \ FROM aggregate_test_100 \ WHERE c11 > 0.1 AND c11 < 0.9 \ GROUP BY c1",).await?;// print the results
df.show().await?;
Describe the bug
My data files in linux don't have ".csv" suffix. When I use ctx.read_csv("path/to/csv"), It read blank data rather than the data in my files or an error.
To Reproduce
Use the case in the example
csv_sql.rs
. I remove the csv file's suffix and cpy /path/to/aggregate_test_100.csv /path/to/aggregate_test_100.The result:
Expected behavior
I think that either the file can be read correctly in this case, or an error that the file suffix does not match will be reported.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: