Skip to content

Commit d68e05f

Browse files
authored
Merge pull request #4 from robtandy/rob.tandy/ray_shuffle
save point before arrow flight refactor
2 parents b46ebb5 + 62dcd0f commit d68e05f

File tree

13 files changed

+488
-172
lines changed

13 files changed

+488
-172
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ datafusion-proto = "43.0"
3737
futures = "0.3"
3838
glob = "0.3.1"
3939
log = "0.4"
40+
object_store = { version = "0.11.0", features = [
41+
"aws",
42+
"gcp",
43+
"azure",
44+
"http",
45+
] }
4046
prost = "0.13"
4147
pyo3 = { version = "0.22.6", features = [
4248
"extension-module",
@@ -51,6 +57,7 @@ tokio = { version = "1.40", features = [
5157
"sync",
5258
] }
5359
uuid = "1.11.0"
60+
url = "2"
5461

5562
[build-dependencies]
5663
prost-types = "0.13"
@@ -59,6 +66,7 @@ tonic-build = { version = "0.8", default-features = false, features = [
5966
"transport",
6067
"prost",
6168
] }
69+
url = "2"
6270

6371
[dev-dependencies]
6472
anyhow = "1.0.89"

build.rs

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,38 +19,38 @@ use std::path::Path;
1919

2020
fn main() -> Result<(), String> {
2121
use std::io::Write;
22-
23-
let out = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap());
24-
25-
// for use in docker build where file changes can be wonky
26-
println!("cargo:rerun-if-env-changed=FORCE_REBUILD");
27-
28-
let version = rustc_version::version().unwrap();
29-
println!("cargo:rustc-env=RUSTC_VERSION={version}");
30-
31-
let path = "src/proto/generated/protobuf.rs";
32-
33-
// We don't include the proto files in releases so that downstreams
34-
// do not need to have PROTOC included
35-
if Path::new("src/proto/datafusion_ray.proto").exists() {
36-
println!("cargo:rerun-if-changed=src/proto/datafusion_common.proto");
37-
println!("cargo:rerun-if-changed=src/proto/datafusion.proto");
38-
println!("cargo:rerun-if-changed=src/proto/datafusion_ray.proto");
39-
tonic_build::configure()
40-
.extern_path(".datafusion", "::datafusion_proto::protobuf")
41-
.extern_path(".datafusion_common", "::datafusion_proto::protobuf")
42-
.compile(&["src/proto/datafusion_ray.proto"], &["src/proto"])
43-
.map_err(|e| format!("protobuf compilation failed: {e}"))?;
44-
let generated_source_path = out.join("datafusion_ray.protobuf.rs");
45-
let code = std::fs::read_to_string(generated_source_path).unwrap();
46-
let mut file = std::fs::OpenOptions::new()
47-
.write(true)
48-
.truncate(true)
49-
.create(true)
50-
.open(path)
51-
.unwrap();
52-
file.write_all(code.as_str().as_ref()).unwrap();
53-
}
54-
22+
/*
23+
let out = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap());
24+
25+
// for use in docker build where file changes can be wonky
26+
println!("cargo:rerun-if-env-changed=FORCE_REBUILD");
27+
28+
let version = rustc_version::version().unwrap();
29+
println!("cargo:rustc-env=RUSTC_VERSION={version}");
30+
31+
let path = "src/proto/generated/protobuf.rs";
32+
33+
// We don't include the proto files in releases so that downstreams
34+
// do not need to have PROTOC included
35+
if Path::new("src/proto/datafusion_ray.proto").exists() {
36+
println!("cargo:rerun-if-changed=src/proto/datafusion_common.proto");
37+
println!("cargo:rerun-if-changed=src/proto/datafusion.proto");
38+
println!("cargo:rerun-if-changed=src/proto/datafusion_ray.proto");
39+
tonic_build::configure()
40+
.extern_path(".datafusion", "::datafusion_proto::protobuf")
41+
.extern_path(".datafusion_common", "::datafusion_proto::protobuf")
42+
.compile(&["src/proto/datafusion_ray.proto"], &["src/proto"])
43+
.map_err(|e| format!("protobuf compilation failed: {e}"))?;
44+
let generated_source_path = out.join("datafusion_ray.protobuf.rs");
45+
let code = std::fs::read_to_string(generated_source_path).unwrap();
46+
let mut file = std::fs::OpenOptions::new()
47+
.write(true)
48+
.truncate(true)
49+
.create(true)
50+
.open(path)
51+
.unwrap();
52+
file.write_all(code.as_str().as_ref()).unwrap();
53+
}
54+
*/
5555
Ok(())
5656
}

0 commit comments

Comments
 (0)