sandugood commented on code in PR #1778:
URL:
https://github.com/apache/datafusion-ballista/pull/1778#discussion_r3310737161
##########
ballista/scheduler/src/api/handlers.rs:
##########
@@ -204,8 +205,20 @@ pub struct QueryStageSummary {
#[derive(Debug, serde::Deserialize, Default)]
pub struct JobQueryParams {
- /// Flag to tree-style render for physical plan
- pub render_tree: Option<bool>,
+ /// Controls plan format
+ pub plan_format: Option<PlanFormat>,
+}
+
+#[derive(Debug, serde::Deserialize, Default, Clone)]
+#[serde(rename_all = "snake_case")]
+pub enum PlanFormat {
+ /// ?plan_format=default => plain indent, no metrics
+ #[default]
+ Default,
+ /// ?plan_format=tree => tree render, no metrics
Review Comment:
Fixed. After this one gets merged I can take care of the tui part, if you
dont mind
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]