Expand description
Utility functions leveraged by the query optimizer rules
Structsยง
- Name
Preserver - Re-export of
NamesPreserverfor backwards compatibility, as it was initially placed here and then moved elsewhere. Handles ensuring the name of rewritten expressions is not changed.
Functionsยง
- coerce ๐
- evaluate_
expr_ ๐with_ null_ column - evaluates_
to_ null - Determines if an expression will always evaluate to null.
c0 + 8return truec0 IS NULLreturn falseCASE WHEN c0 > 1 then 0 else 1return false - has_
all_ ๐column_ refs - Returns true if
exprcontains all columns inschema_cols - is_
restrict_ null_ predicate - Determine whether a predicate can restrict NULLs. e.g.
c0 > 8return true;c0 IS NULLreturn false. - log_
plan - Log the plan in debug/tracing mode after some part of the optimizer runs
- replace_
qualified_ ๐name