liningpan commented on issue #1736: URL: https://github.com/apache/arrow-datafusion/issues/1736#issuecomment-1505811924
I also ran into this issue. The problem seems to be even if only a single file is provided, we still try to match by extension. https://github.com/apache/arrow-datafusion/blob/0e5f6df2c4fb2d647874102a19c74eaaf7f34d98/datafusion/core/src/datasource/listing/url.rs#L143-L175 If my use case always uses a single csv file for each table, would a reasonable workaround be setting file extension to an empty string in `CsvReadOptions`? Are there any problems? ```rust ctx.register_csv( name, path, CsvReadOptions::new().file_extension("") ).await? ``` -- 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]
