-
Notifications
You must be signed in to change notification settings - Fork 109
Rules review #294
Comments
This clashes with rules that defer resolution. For example, the I think having such a hard rule is not very flexible and can make resolving the query really complicated. |
In that specific case, we should iterate and resolve the columns that can be resolved on that specific iteration. If some columns are not possible to be resolved, we must wait for the next Analyzer iteration to check again if we can resolve more columns. The plan will not be the same, because other rules applied his modifications and maybe on that iteration more columns can be resolved. It's not mandatory to resolve the query plan in only one iteration. |
You need to differentiate between "I needed more things to be resolved before resolving this" and "I can't resolve this". Without Also, for assign indexes, you need to gather the indexes in one rule and finally resolve in another. If you don't get to the Maybe we just need to come up with better ways to resolve certain things, then, because applying that is not feasible with how we do it now. |
Closing this because is too broad. We should open separated issues if we found a way to simplify or improve actual rules. |
To try to reduce errors in rules interactions, I wrote some guidelines to improve and simplify that rules:
Rules guideline
Apply that on rules that do not accomplish it.
The text was updated successfully, but these errors were encountered: