Expand description
Utility functions leveraged by the query optimizer rules
Structs§
- Name
Preserver - Re-export of
NamesPreserver
for backwards compatibility, as it was initially placed here and then moved elsewhere. Handles ensuring the name of rewritten expressions is not changed.
Functions§
- evaluates_
to_ null - Determines if an expression will always evaluate to null.
c0 + 8
return truec0 IS NULL
return falseCASE WHEN c0 > 1 then 0 else 1
return false - is_
restrict_ null_ predicate - Determine whether a predicate can restrict NULLs. e.g.
c0 > 8
return true;c0 IS NULL
return false. - log_
plan - Log the plan in debug/tracing mode after some part of the optimizer runs