Struct sql_migration_sim::ast::Select
source · pub struct Select {Show 14 fields
pub distinct: Option<Distinct>,
pub top: Option<Top>,
pub projection: Vec<SelectItem>,
pub into: Option<SelectInto>,
pub from: Vec<TableWithJoins>,
pub lateral_views: Vec<LateralView>,
pub selection: Option<Expr>,
pub group_by: GroupByExpr,
pub cluster_by: Vec<Expr>,
pub distribute_by: Vec<Expr>,
pub sort_by: Vec<Expr>,
pub having: Option<Expr>,
pub named_window: Vec<NamedWindowDefinition>,
pub qualify: Option<Expr>,
}
Expand description
A restricted variant of SELECT
(without CTEs/ORDER BY
), which may
appear either as the only body item of a Query
, or as an operand
to a set operation like UNION
.
Fields§
§distinct: Option<Distinct>
§top: Option<Top>
MSSQL syntax: TOP (<N>) [ PERCENT ] [ WITH TIES ]
projection: Vec<SelectItem>
projection expressions
into: Option<SelectInto>
INTO
from: Vec<TableWithJoins>
FROM
lateral_views: Vec<LateralView>
LATERAL VIEWs
selection: Option<Expr>
WHERE
group_by: GroupByExpr
GROUP BY
cluster_by: Vec<Expr>
CLUSTER BY (Hive)
distribute_by: Vec<Expr>
DISTRIBUTE BY (Hive)
sort_by: Vec<Expr>
SORT BY (Hive)
having: Option<Expr>
HAVING
named_window: Vec<NamedWindowDefinition>
WINDOW AS
qualify: Option<Expr>
QUALIFY (Snowflake)
Trait Implementations§
source§impl Ord for Select
impl Ord for Select
source§impl PartialEq for Select
impl PartialEq for Select
source§impl PartialOrd for Select
impl PartialOrd for Select
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Select
impl StructuralEq for Select
impl StructuralPartialEq for Select
Auto Trait Implementations§
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnwindSafe for Select
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