pub struct SubSelectOp {
pub inner: Box<PlanNode>,
pub variables: Vec<Variable>,
}Expand description
Lowered nested SELECT (SubSelect) boundary.
Fields§
§inner: Box<PlanNode>The fully lowered subselect, including its own Distinct / Slice
modifier spine (lower_subselect folds Slice?(Distinct?(Project))
in), plus any Group / HAVING from the body. Executes as an
independent query, bounded by its own OFFSET/LIMIT.
variables: Vec<Variable>The subselect’s SELECT list — the only variables visible outside the
boundary, in SELECT order. Liveness may prune dead names from this
list (see crate::liveness); an in-boundary Distinct.columns keeps
the FULL list — deduping by a pruned column would change the output
multiset.
Implementations§
Source§impl SubSelectOp
impl SubSelectOp
Sourcepub fn produced_row_count_estimate(&self) -> u64
pub fn produced_row_count_estimate(&self) -> u64
Estimated cardinality of the subquery output. The in-boundary Slice (when the subselect has OFFSET/LIMIT) caps the body estimate; Group caps it at one row per key.
Trait Implementations§
Source§impl Clone for SubSelectOp
impl Clone for SubSelectOp
Source§fn clone(&self) -> SubSelectOp
fn clone(&self) -> SubSelectOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubSelectOp
impl Debug for SubSelectOp
Source§impl PartialEq for SubSelectOp
impl PartialEq for SubSelectOp
impl StructuralPartialEq for SubSelectOp
Auto Trait Implementations§
impl Freeze for SubSelectOp
impl !RefUnwindSafe for SubSelectOp
impl Send for SubSelectOp
impl Sync for SubSelectOp
impl Unpin for SubSelectOp
impl UnsafeUnpin for SubSelectOp
impl !UnwindSafe for SubSelectOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].