Skip to content

Commit 721250f

Browse files
committed
Updates
1 parent e6e9682 commit 721250f

File tree

10 files changed

+15
-29
lines changed

10 files changed

+15
-29
lines changed

datafusion/core/src/datasource/file_format/csv.rs

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ mod tests {
104104
unimplemented!()
105105
}
106106

107-
async fn get(&self, location: &Path) -> object_store::Result<GetResult> {
108-
self.get_opts(location, GetOptions::default()).await
109-
}
110-
111107
async fn get_opts(
112108
&self,
113109
location: &Path,
@@ -147,14 +143,6 @@ mod tests {
147143
unimplemented!()
148144
}
149145

150-
async fn head(&self, _location: &Path) -> object_store::Result<ObjectMeta> {
151-
unimplemented!()
152-
}
153-
154-
async fn delete(&self, _location: &Path) -> object_store::Result<()> {
155-
unimplemented!()
156-
}
157-
158146
fn list(
159147
&self,
160148
_prefix: Option<&Path>,
@@ -169,15 +157,10 @@ mod tests {
169157
unimplemented!()
170158
}
171159

172-
async fn copy(&self, _from: &Path, _to: &Path) -> object_store::Result<()> {
173-
unimplemented!()
174-
}
175-
176-
async fn copy_if_not_exists(
160+
fn delete_stream(
177161
&self,
178-
_from: &Path,
179-
_to: &Path,
180-
) -> object_store::Result<()> {
162+
locations: BoxStream<'static, object_store::Result<Path>>,
163+
) -> BoxStream<'static, object_store::Result<Path>> {
181164
unimplemented!()
182165
}
183166
}

datafusion/datasource-arrow/src/file_format.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ use datafusion_session::Session;
6363
use futures::StreamExt;
6464
use futures::stream::BoxStream;
6565
use object_store::{
66-
GetOptions, GetRange, GetResultPayload, ObjectMeta, ObjectStore, path::Path,
66+
GetOptions, GetRange, GetResultPayload, ObjectMeta, ObjectStore, ObjectStoreExt,
67+
path::Path,
6768
};
6869
use tokio::io::AsyncWriteExt;
6970

datafusion/datasource-arrow/src/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ use datafusion_datasource::file_stream::FileOpenFuture;
5656
use datafusion_datasource::file_stream::FileOpener;
5757
use futures::{StreamExt, TryStreamExt};
5858
use itertools::Itertools;
59-
use object_store::{GetOptions, GetRange, GetResultPayload, ObjectStore};
59+
use object_store::{GetOptions, GetRange, GetResultPayload, ObjectStore, ObjectStoreExt};
6060

6161
/// Enum indicating which Arrow IPC format to use
6262
#[derive(Clone, Copy, Debug)]

datafusion/datasource-avro/src/file_format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use datafusion_physical_plan::ExecutionPlan;
4141
use datafusion_session::Session;
4242

4343
use async_trait::async_trait;
44-
use object_store::{GetResultPayload, ObjectMeta, ObjectStore};
44+
use object_store::{GetResultPayload, ObjectMeta, ObjectStore, ObjectStoreExt};
4545

4646
#[derive(Default)]
4747
/// Factory struct used to create [`AvroFormat`]

datafusion/datasource-avro/src/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use datafusion_physical_expr_common::sort_expr::LexOrdering;
3333
use datafusion_physical_plan::metrics::ExecutionPlanMetricsSet;
3434
use datafusion_physical_plan::projection::ProjectionExprs;
3535

36-
use object_store::ObjectStore;
36+
use object_store::{ObjectStore, ObjectStoreExt};
3737

3838
/// AvroSource holds the extra configuration that is necessary for opening avro files
3939
#[derive(Clone)]

datafusion/datasource-csv/src/file_format.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ use bytes::{Buf, Bytes};
6060
use datafusion_datasource::source::DataSourceExec;
6161
use futures::stream::BoxStream;
6262
use futures::{Stream, StreamExt, TryStreamExt, pin_mut};
63-
use object_store::{ObjectMeta, ObjectStore, delimited::newline_delimited_stream};
63+
use object_store::{
64+
ObjectMeta, ObjectStore, ObjectStoreExt, delimited::newline_delimited_stream,
65+
};
6466
use regex::Regex;
6567

6668
#[derive(Default)]

datafusion/datasource-json/src/file_format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use datafusion_session::Session;
6060
use async_trait::async_trait;
6161
use bytes::{Buf, Bytes};
6262
use datafusion_datasource::source::DataSourceExec;
63-
use object_store::{GetResultPayload, ObjectMeta, ObjectStore};
63+
use object_store::{GetResultPayload, ObjectMeta, ObjectStore, ObjectStoreExt};
6464

6565
#[derive(Default)]
6666
/// Factory struct used to create [JsonFormat]

datafusion/datasource-parquet/src/file_format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ use futures::future::BoxFuture;
7070
use futures::{FutureExt, StreamExt, TryStreamExt};
7171
use object_store::buffered::BufWriter;
7272
use object_store::path::Path;
73-
use object_store::{ObjectMeta, ObjectStore};
73+
use object_store::{ObjectMeta, ObjectStore, ObjectStoreExt};
7474
use parquet::arrow::arrow_writer::{
7575
ArrowColumnChunk, ArrowColumnWriter, ArrowLeafColumn, ArrowRowGroupWriterFactory,
7676
ArrowWriterOptions, compute_leaves,

datafusion/datasource-parquet/src/opener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ mod test {
984984
};
985985
use datafusion_physical_plan::metrics::ExecutionPlanMetricsSet;
986986
use futures::{Stream, StreamExt};
987-
use object_store::{ObjectStore, memory::InMemory, path::Path};
987+
use object_store::{ObjectStore, ObjectStoreExt, memory::InMemory, path::Path};
988988
use parquet::arrow::ArrowWriter;
989989
use parquet::file::properties::WriterProperties;
990990

datafusion/datasource-parquet/src/row_group_filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ mod tests {
15371537
pruning_predicate: &PruningPredicate,
15381538
) -> Result<RowGroupAccessPlanFilter> {
15391539
use datafusion_datasource::PartitionedFile;
1540-
use object_store::{ObjectMeta, ObjectStore};
1540+
use object_store::{ObjectMeta, ObjectStoreExt};
15411541

15421542
let object_meta = ObjectMeta {
15431543
location: object_store::path::Path::parse(file_name).expect("creating path"),

0 commit comments

Comments
 (0)