Traits§
- DynEq
PhysicalExpr
can’t be constrained byEq
directly because it must remain object safe. To ease implementation, blanket implementation is provided forEq
types.- DynHash
PhysicalExpr
can’t be constrained byHash
directly because it must remain object safe. To ease implementation blanket implementation is provided forHash
types.- Physical
Expr PhysicalExpr
s represent expressions such asA + 1
orCAST(c1 AS int)
.
Functions§
- down_
cast_ any_ ref Deprecated - fmt_sql
- Prints a
PhysicalExpr
in a SQL-like format - format_
physical_ expr_ list - Returns
Display
able a list ofPhysicalExpr
- is_
dynamic_ physical_ expr - Check if the given
PhysicalExpr
is dynamic. Internally this callssnapshot_generation
to check if the generation is non-zero, any dynamicPhysicalExpr
should have a non-zero generation. - snapshot_
generation - Check the generation of this
PhysicalExpr
. DynamicPhysicalExpr
s may have a generation that is incremented every time the state of thePhysicalExpr
changes. If the generation changes that means thisPhysicalExpr
or one of its children has changed since the last time it was evaluated. - snapshot_
physical_ expr - Take a snapshot of the given
PhysicalExpr
if it is dynamic. - with_
new_ children_ if_ necessary - Returns a copy of this expr if we change any child according to the pointer comparison.
The size of
children
must be equal to the size ofPhysicalExpr::children()
.
Type Aliases§
- Physical
Expr Ref - Shared
PhysicalExpr
.