Struct sql::plan::expr::ColumnRef [−][src]
Expand description
A leveled column reference.
In the course of decorrelation, multiple levels of nested subqueries are traversed, and references to columns may correspond to different levels of containing outer subqueries.
A ColumnRef
allows expressions to refer to columns while being clear
about which level the column references without manually performing the
bookkeeping tracking their actual column locations.
Specifically, a ColumnRef
refers to a column level
subquery level out
from the reference, using column
as a unique identifier in that subquery level.
A level
of zero corresponds to the current scope, and levels increase to
indicate subqueries further “outwards”.
Fields
level: usize
column: usize
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ColumnRef
impl UnwindSafe for ColumnRef
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more