Create a substrait plan after optimizing the AST.
Create a substrait plan after optimizing the AST.