You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is from is null optimize.
I think the is null optimization has no side effect if the column has not null constraint.
But the is not null optimization should be checked with more cases, I will do it in the followup pull request.
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
The expr
column is null
can be optimize if the column is not null in the schema.If a WHERE clause includes a col_name IS NULL condition for a column that is declared as NOT NULL, that expression is optimized away.
Describe the solution you'd like
In the PG database
The expr
c1 is null
can be optimized asfalse
away.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: