How to walk through a Plan gracefully?

It seems there is no such a utility like Visitor for SQL Plan in TiDB.

3 Likes

Simply do a DFS or BFS on the plan tree