alamb opened a new pull request, #4581: URL: https://github.com/apache/arrow-datafusion/pull/4581
Draft as I have to sort out calling the correct calls in ListingTable but I think it is possible. Just putting up WIP in case anyone else is interested # Which issue does this PR close? Closes https://github.com/apache/arrow-datafusion/issues/4580 # Rationale for this change See https://github.com/apache/arrow-datafusion/issues/4580 # What changes are included in this PR? 1. Add dynamic catalog wrappers in datafusion-cli that treat unknown table names as a filename # Are these changes tested? Not yet # Are there any user-facing changes? For DataFusio-cli # Example use ```shell cat ~/Downloads/parquet_select.sql select * from '/Users/alamb/Software/arrow-datafusion/parquet-testing/data/alltypes_tiny_pages.parquet' limit 10; cargo run -- --file ~/Downloads/parquet_select.sql ``` Current output: ``` DataFusion CLI v15.0.0 Providing catalog for name datafusion Providing schema for public Providing schema for information_schema Providing catalog for name datafusion Providing schema for public Getting provider for /Users/alamb/Software/arrow-datafusion/parquet-testing/data/alltypes_tiny_pages.parquet Treating /Users/alamb/Software/arrow-datafusion/parquet-testing/data/alltypes_tiny_pages.parquet as filename... Plan("table 'datafusion.public./Users/alamb/Software/arrow-datafusion/parquet-testing/data/alltypes_tiny_pages.parquet' not found") ``` -- 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]
