Open lmatz opened 2 years ago
How about OptimizeError?
How about OptimizeError?
Maybe an enum of PlanError? It seems the optimization rules return Option
instead of Result
, similar to Calcite returning a Null in the event of a failure of rule application.
But we will see whether it is necessary later and we can add it then.
We do need it to check whether apply can be unnested or not. https://github.com/singularity-data/risingwave/pull/2187#discussion_r861475292
The reason our current optimizer returns Option is for writting code easily........
After #14953, I believe there's a stronger motivation for addressing this issue.
As mentioned in #1367.
Tracking: