Great article!. While reading it I see some similarities with "Plan Stitching" from MSR as shown here
https://www.microsoft.com/en-us/research/uploads/prod/2018/0.... It is interesting to see what the performance differences between the two. Also, I am curious of why build a query optimizer from scratch when you can adopt or port something like Orca?