danielhumanmod commented on PR #1428:
URL:
https://github.com/apache/datafusion-ballista/pull/1428#issuecomment-4131355877
I tried a prototype locally, the e2e data flow will looks like:
```
EXPLAIN ANALYZE <query>
│
▼ planner.rs
LogicalPlan::Analyze detected
│ strip wrapper, extract inner plan + verbose flag
▼
DistributedQueryExec::with_action(..., ExplainAnalyze { verbose })
│ schema = (plan_type TEXT, plan TEXT)
▼ distributed_query.rs
execute_explain_analyze()
├── submit_job(inner_plan) → job_id
├── poll until SUCCESS
├── scheduler.get_job_metrics(job_id) → Vec<StageMetrics>
│
▼
each stage: "Stage N:\n <plan_text>\n"
│
▼
RecordBatch { plan_type: ["distributed plan"], plan: [<formatted text>] }
```
--
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]