Skip to content

Commit 1e88b11

Browse files
committed
Update for API changes
1 parent 63e9793 commit 1e88b11

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

parquet/src/arrow/async_reader/store.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::file::metadata::{PageIndexPolicy, ParquetMetaData, ParquetMetaDataRea
2424
use bytes::Bytes;
2525
use futures::{FutureExt, TryFutureExt, future::BoxFuture};
2626
use object_store::{GetOptions, GetRange};
27-
use object_store::{ObjectStore, path::Path};
27+
use object_store::{ObjectStore, ObjectStoreExt, path::Path};
2828
use tokio::runtime::Handle;
2929

3030
/// Reads Parquet files in object storage using [`ObjectStore`].
@@ -186,7 +186,7 @@ impl MetadataSuffixFetch for &mut ParquetObjectReader {
186186

187187
impl AsyncFileReader for ParquetObjectReader {
188188
fn get_bytes(&mut self, range: Range<u64>) -> BoxFuture<'_, Result<Bytes>> {
189-
self.spawn(|store, path| store.get_range(path, range))
189+
self.spawn(|store, path| Box::pin(store.get_range(path, range)))
190190
}
191191

192192
fn get_byte_ranges(&mut self, ranges: Vec<Range<u64>>) -> BoxFuture<'_, Result<Vec<Bytes>>>
@@ -260,7 +260,7 @@ mod tests {
260260
use futures::FutureExt;
261261
use object_store::local::LocalFileSystem;
262262
use object_store::path::Path;
263-
use object_store::{ObjectMeta, ObjectStore};
263+
use object_store::{ObjectMeta, ObjectStore, ObjectStoreExt};
264264

265265
async fn get_meta_store() -> (ObjectMeta, Arc<dyn ObjectStore>) {
266266
let res = parquet_test_data();

parquet/src/arrow/async_writer/store.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ impl From<BufWriter> for ParquetObjectWriter {
118118
}
119119
#[cfg(test)]
120120
mod tests {
121-
use arrow_array::{ArrayRef, Int64Array, RecordBatch};
122-
use object_store::memory::InMemory;
123-
use std::sync::Arc;
124-
125121
use super::*;
126122
use crate::arrow::AsyncArrowWriter;
127123
use crate::arrow::arrow_reader::ParquetRecordBatchReaderBuilder;
124+
use arrow_array::{ArrayRef, Int64Array, RecordBatch};
125+
use object_store::ObjectStoreExt;
126+
use object_store::memory::InMemory;
127+
use std::sync::Arc;
128128

129129
#[tokio::test]
130130
async fn test_async_writer() {

parquet/tests/encryption/encryption_async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ async fn get_encrypted_meta_store() -> (
296296
object_store::ObjectMeta,
297297
std::sync::Arc<dyn object_store::ObjectStore>,
298298
) {
299-
use object_store::ObjectStore;
300299
use object_store::local::LocalFileSystem;
301300
use object_store::path::Path;
301+
use object_store::{ObjectStore, ObjectStoreExt};
302302

303303
use std::sync::Arc;
304304
let test_data = arrow::util::test_util::parquet_test_data();

0 commit comments

Comments
 (0)