New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table scan not getting eliminated for a predicate non-satisfiable due to a CAST domain #16515
Comments
before that change, what was the optimizer / rule which was eliminating the table scan? |
Lines 240 to 245 in 2ddb5d8
(I will also add a dedicated rule as you requested) |
Do you understand why, before #16444, the |
@findepi because trino/core/trino-main/src/main/java/io/trino/sql/planner/DomainTranslator.java Lines 1221 to 1225 in 62456c7
I've added such a translation instead of expanding the if clause I mentioned earlier.My PR is now ready, please take a look- #16206 |
thanks @assaf2 for getting to the bottom of the problem. |
In 408 and 409 the table scan was getting eliminated
410 produces correct result, but table scan is not removed from the plan
The text was updated successfully, but these errors were encountered: