You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "sandugood (via GitHub)" <gi...@apache.org> on 2026/05/05 09:40:33 UTC

Re: [PR] feat: rest api supports plan tree rendering [datafusion-ballista]

sandugood commented on PR #1650:
URL: https://github.com/apache/datafusion-ballista/pull/1650#issuecomment-4378112801

   I thought that `render_tree` seemed clearer (I'm always unsure about the namings) as parameter name, so I switched to it.
   
   Added this query param to the `/api/job/{job_id}/stages` endpoint. Looks like this:
   
   ```
   ~ curl -s localhost:50050/api/job/Za9mMBI/stages?render_tree=true | jq -r ".stages.[0].stage_plan"
   ┌───────────────────────────┐
   │   SortShuffleWriterExec   │
   │    --------------------   │
   │       partitioning:       │
   │      Hash([c1@0], 4)      │
   └─────────────┬─────────────┘
   ┌─────────────┴─────────────┐
   │       AggregateExec       │
   │    --------------------   │
   │           aggr:           │
   │  min(test.c12), max(test  │
   │           .c12)           │
   │                           │
   │        group_by: c1       │
   │       mode: Partial       │
   └─────────────┬─────────────┘
   ┌─────────────┴─────────────┐
   │         FilterExec        │
   │    --------------------   │
   │         predicate:        │
   │  c11 > 0.1 AND c11 < 0.9  │
   └─────────────┬─────────────┘
   ┌─────────────┴─────────────┐
   │       DataSourceExec      │
   │    --------------------   │
   │          files: 1         │
   │        format: csv        │
   └───────────────────────────┘
   
   
   ```


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org