saikrishna1-bidgely commented on code in PR #4908:
URL: https://github.com/apache/arrow-datafusion/pull/4908#discussion_r1107752138
##########
datafusion/core/src/execution/context.rs:
##########
@@ -106,6 +106,43 @@ use super::options::{
AvroReadOptions, CsvReadOptions, NdJsonReadOptions, ParquetReadOptions,
ReadOptions,
};
+/// DataFilePaths adds a method to convert strings and vector of strings to
vector of URLs.
+/// This is primarily used as restriciton on the input to methods like
read_csv, read_avro
+/// and the rest.
+pub trait DataFilePaths {
+ /// Parse to a list of URLs
+ fn to_urls(self) -> Result<Vec<ListingTableUrl>>;
+}
+
+impl DataFilePaths for &str {
Review Comment:
Looks like rust won't allow it. We won't be able to implement a trait for
another trait and also for another class.
--
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]