pub struct LateralAliasInfo {
pub name: String,
pub definition_end: usize,
pub projection_start: usize,
pub projection_end: usize,
}Expand description
Information about a SELECT alias for lateral reference support.
Lateral column aliases allow referencing aliases defined earlier in the same SELECT list. This is supported by dialects like DuckDB, BigQuery, and Snowflake.
§Scope Tracking
Each alias tracks the byte offset range of its containing SELECT’s projection. This is used to ensure aliases from CTEs or subqueries don’t leak into outer SELECT scopes.
Fields§
§name: StringThe alias name
definition_end: usizeByte offset where the alias definition ends
projection_start: usizeByte offset where the containing SELECT’s projection starts (after SELECT keyword)
projection_end: usizeByte offset where the containing SELECT’s projection ends (before FROM/WHERE/etc.)
Trait Implementations§
Source§impl Clone for LateralAliasInfo
impl Clone for LateralAliasInfo
Source§fn clone(&self) -> LateralAliasInfo
fn clone(&self) -> LateralAliasInfo
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 moreAuto Trait Implementations§
impl Freeze for LateralAliasInfo
impl RefUnwindSafe for LateralAliasInfo
impl Send for LateralAliasInfo
impl Sync for LateralAliasInfo
impl Unpin for LateralAliasInfo
impl UnwindSafe for LateralAliasInfo
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