ozankabak commented on PR #12186: URL: https://github.com/apache/datafusion/pull/12186#issuecomment-2326620705
Let's create a new example file, add the traversal logic and a simple of demonstration of how to store the node <-> id association via a map in that file. I think it will be a fairly succinct yet guiding example for many others. You may run into a difficulty creating or inserting into a map with `Arc<dyn ExecutionPlan>` as a key. A good way to get around it is to put the plan inside a wrapper struct and using that as a key. We wanted to make `Arc<dyn ExecutionPlan>` directly useable as keys for a while, but couldn't get around to doing it. It would be a great contribution if you'd like to work on it. It will make use cases like this smoother to code, and also help make some planning algorithms faster. -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org