lidavidm opened a new pull request #11068:
URL: https://github.com/apache/arrow/pull/11068


   Example output:
   
   ```
   ExecPlan with 6 nodes:
   SourceNode{"source", outputs=["filter"]}
   FilterNode{"filter", inputs=[target: "source"], outputs=["project"], 
filter=(i32 >= 0)}
   ProjectNode{"project", inputs=[target: "filter"], outputs=["aggregate"], 
projection=[bool, multiply(i32, 2)]}
   GroupByNode{"aggregate", inputs=[groupby: "project"], outputs=["filter"], 
keys=["bool"], aggregates=[
        hash_sum(multiply(i32, 2)),
        hash_count(multiply(i32, 2), {mode=NON_NULL}),
   ]}
   FilterNode{"filter", inputs=[target: "aggregate"], 
outputs=["order_by_sink"], filter=(sum(multiply(i32, 2)) > 10)}
   OrderBySinkNode{"order_by_sink", inputs=[collected: "filter"], 
by={sort_keys=[sum(multiply(i32, 2)) ASC]}}
   ```
   
   This prints nodes in the order of the topological sort. Since this is a 
graph and not necessarily a tree, I didn't try to indent the nodes themselves 
or anything.


-- 
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]


Reply via email to