Compiles a query into raw LogicalPlan, which has not yet been optimized or typechecked.
Optimizes and typechecks a LogicalPlan
returning the improved plan.
Returns the LogicalPlan
for the given SQL^2 query, or a list of
results, if the query was foldable to a constant.
Identify plans which reduce to a (set of) constant value(s).