Skip to content

Commit 7e7a57a

Browse files
committed
Prepare object_store 0.9.0
1 parent 561d941 commit 7e7a57a

File tree

6 files changed

+32
-19
lines changed

6 files changed

+32
-19
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,6 @@ opt-level = 3
9292
overflow-checks = false
9393
panic = 'unwind'
9494
rpath = false
95+
96+
[patch.crates-io]
97+
object_store = { git = "https://github.com/apache/arrow-rs.git", rev = "f7101ec3a2b37c436f4554c28fa2d0a05de533ff" }

datafusion-cli/Cargo.lock

Lines changed: 22 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion-cli/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ assert_cmd = "2.0"
5353
ctor = "0.2.0"
5454
predicates = "3.0"
5555
rstest = "0.17"
56+
57+
[patch.crates-io]
58+
object_store = { git = "https://github.com/apache/arrow-rs.git", rev = "f7101ec3a2b37c436f4554c28fa2d0a05de533ff" }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ impl FileOpener for CsvOpener {
375375

376376
let range = match calculated_range {
377377
RangeCalculation::Range(None) => None,
378-
RangeCalculation::Range(Some(range)) => Some(range),
378+
RangeCalculation::Range(Some(range)) => Some(range.into()),
379379
RangeCalculation::TerminateEarly => {
380380
return Ok(
381381
futures::stream::poll_fn(move |_| Poll::Ready(None)).boxed()

datafusion/core/src/datasource/physical_plan/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl FileOpener for JsonOpener {
239239

240240
let range = match calculated_range {
241241
RangeCalculation::Range(None) => None,
242-
RangeCalculation::Range(Some(range)) => Some(range),
242+
RangeCalculation::Range(Some(range)) => Some(range.into()),
243243
RangeCalculation::TerminateEarly => {
244244
return Ok(
245245
futures::stream::poll_fn(move |_| Poll::Ready(None)).boxed()

datafusion/core/src/datasource/physical_plan/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ use datafusion_physical_plan::ExecutionPlan;
7575

7676
use log::debug;
7777
use object_store::ObjectMeta;
78-
use object_store::{path::Path, GetOptions, ObjectStore};
78+
use object_store::{path::Path, GetOptions, GetRange, ObjectStore};
7979

8080
/// The base configurations to provide when creating a physical plan for
8181
/// writing to any given file format.
@@ -604,10 +604,8 @@ async fn find_first_newline(
604604
start: usize,
605605
end: usize,
606606
) -> Result<usize> {
607-
let range = Some(Range { start, end });
608-
609607
let options = GetOptions {
610-
range,
608+
range: Some(GetRange::Bounded(start..end)),
611609
..Default::default()
612610
};
613611

0 commit comments

Comments
 (0)