Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade datafusion to 31.0.0 #878

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ members = [
resolver = "2"

[workspace.dependencies]
arrow = { version = "45.0.0" }
arrow-flight = { version = "45.0.0", features = ["flight-sql-experimental"] }
arrow-schema = { version = "45.0.0", default-features = false }
arrow = { version = "46.0.0" }
arrow-flight = { version = "46.0.0", features = ["flight-sql-experimental"] }
arrow-schema = { version = "46.0.0", default-features = false }
configure_me = { version = "0.4.0" }
configure_me_codegen = { version = "0.4.4" }
datafusion = "30.0.0"
datafusion-cli = "30.0.0"
datafusion-proto = "30.0.0"
object_store = "0.6.1"
sqlparser = "0.36.1"
datafusion = "31.0.0"
datafusion-cli = "31.0.0"
datafusion-proto = "31.0.0"
object_store = "0.7.0"
sqlparser = "0.37.0"
tonic = { version = "0.9" }
tonic-build = { version = "0.9", default-features = false, features = [
"transport",
Expand Down
2 changes: 2 additions & 0 deletions ballista/client/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ mod tests {
infinite_source: false,
insert_mode:
datafusion::datasource::listing::ListingTableInsertMode::Error,
file_type_write_options: None,
single_file: false,
};

let table_paths = listing_table
Expand Down
12 changes: 6 additions & 6 deletions ballista/core/src/cache_layer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mod tests {
use futures::TryStreamExt;
use object_store::local::LocalFileSystem;
use object_store::path::Path;
use object_store::{GetResult, ObjectStore};
use object_store::{GetResultPayload, ObjectStore};
use std::io::Write;
use std::sync::Arc;
use tempfile::NamedTempFile;
Expand Down Expand Up @@ -71,8 +71,8 @@ mod tests {
source_object_store.clone(),
));
let actual_source = source_object_store.get(&source_location).await.unwrap();
match actual_source {
GetResult::File(file, _) => {
match actual_source.payload {
GetResultPayload::File(file, _) => {
assert_eq!(test_bytes.len(), file.metadata()?.len() as usize);
}
_ => {
Expand All @@ -99,13 +99,13 @@ mod tests {
source_object_store_with_key.clone(),
);
let actual_cache = cache_object_store.get(&source_location).await.unwrap();
match actual_cache {
GetResult::File(_, _) => {
match actual_cache.payload {
GetResultPayload::File(_, _) => {
return Err(BallistaError::General(
"Data stream instead of file should be returned".to_string(),
))
}
GetResult::Stream(s) => {
GetResultPayload::Stream(s) => {
let mut buf: Vec<u8> = vec![];
s.try_fold(&mut buf, |acc, part| async move {
let mut part: Vec<u8> = part.into();
Expand Down
4 changes: 2 additions & 2 deletions ballista/scheduler/src/flight_sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ impl FlightSqlServiceImpl {
> {
type FlightResult = Result<FlightData, Status>;
let (tx, rx): (Sender<FlightResult>, Receiver<FlightResult>) = channel(2);
let schema = (*rb.schema()).clone();
let flights = batches_to_flight_data(schema, vec![rb])
let schema = rb.schema();
let flights = batches_to_flight_data(&schema, vec![rb])
.map_err(|_| Status::internal("Error encoding batches".to_string()))?;
for flight in flights {
tx.send(Ok(flight))
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/src/bin/tpch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,8 @@ async fn get_table(
file_sort_order: vec![],
infinite_source: false,
insert_mode: ListingTableInsertMode::Error,
file_type_write_options: None,
single_file: false,
};

let url = ListingTableUrl::parse(path)?;
Expand Down
Loading