This is an automated email from the ASF dual-hosted git repository.
jeffreyvo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-ballista.git
The following commit(s) were added to refs/heads/main by this push:
new 04766d5f Bump graphviz-rust from 0.6.1 to 0.8.0 (#999)
04766d5f is described below
commit 04766d5fd7cbb15d583f736979c11de06c720928
Author: Jeffrey Vo <[email protected]>
AuthorDate: Wed Apr 17 07:57:50 2024 +1000
Bump graphviz-rust from 0.6.1 to 0.8.0 (#999)
---
ballista/scheduler/Cargo.toml | 2 +-
ballista/scheduler/src/api/handlers.rs | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ballista/scheduler/Cargo.toml b/ballista/scheduler/Cargo.toml
index a3472157..b11b091f 100644
--- a/ballista/scheduler/Cargo.toml
+++ b/ballista/scheduler/Cargo.toml
@@ -56,7 +56,7 @@ datafusion-proto = { workspace = true }
etcd-client = { version = "0.12", optional = true }
flatbuffers = { version = "23.5.26" }
futures = "0.3"
-graphviz-rust = "0.6.1"
+graphviz-rust = "0.8.0"
http = "0.2"
http-body = "0.4"
hyper = "0.14.4"
diff --git a/ballista/scheduler/src/api/handlers.rs
b/ballista/scheduler/src/api/handlers.rs
index 94b2c90d..0645147c 100644
--- a/ballista/scheduler/src/api/handlers.rs
+++ b/ballista/scheduler/src/api/handlers.rs
@@ -345,6 +345,7 @@ pub(crate) async fn get_job_svg_graph<T: AsLogicalPlan, U:
AsExecutionPlan>(
&mut PrinterContext::default(),
vec![CommandArg::Format(Format::Svg)],
)
+ .map(|bytes| String::from_utf8_lossy(&bytes).to_string())
.map_err(|_| warp::reject())
} else {
Ok("Cannot parse graph".to_string())