pub enum TableFactor {
Table {
name: ObjectName,
alias: Option<Ident>,
system_time: Option<Expr>,
sample: Option<TableSample>,
},
Derived {
subquery: Box<Query>,
alias: Option<Ident>,
sample: Option<TableSample>,
},
Unnest {
array: Box<Expr>,
alias: Option<Ident>,
with_offset: Option<Option<Ident>>,
},
TableFunction {
function: Function,
alias: Option<Ident>,
},
NestedJoin {
table: Box<TableWithJoins>,
alias: Option<Ident>,
},
Pivot {
table: Box<TableFactor>,
aggregates: Vec<ExprWithAlias>,
value_column: Box<Expr>,
values: Vec<ExprWithAlias>,
alias: Option<Ident>,
},
Unpivot {
table: Box<TableFactor>,
include_nulls: Option<bool>,
value_columns: Vec<Ident>,
name_column: Ident,
columns: Vec<UnpivotColumns>,
alias: Option<Ident>,
},
MatchRecognize {
table: Box<TableFactor>,
spec: Box<MatchRecognize>,
alias: Option<Ident>,
},
Align {
table: Box<TableFactor>,
spec: Box<Align>,
alias: Option<Ident>,
},
}Variants§
Table
Derived
Unnest
Fields
TableFunction
A table-valued function call (ML.PREDICT(MODEL m, TABLE t), tvf(1, TABLE t)).
NestedJoin
Pivot
Unpivot
MatchRecognize
table MATCH_RECOGNIZE (...)
Align
table ALIGN (...)
Implementations§
Trait Implementations§
Source§impl Clone for TableFactor
impl Clone for TableFactor
Source§impl Debug for TableFactor
impl Debug for TableFactor
Source§impl<'de> Deserialize<'de> for TableFactor
impl<'de> Deserialize<'de> for TableFactor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TableFactor
Source§impl Hash for TableFactor
impl Hash for TableFactor
Source§impl PartialEq for TableFactor
impl PartialEq for TableFactor
Source§impl Serialize for TableFactor
impl Serialize for TableFactor
impl StructuralPartialEq for TableFactor
Auto Trait Implementations§
impl Forget for TableFactor
impl Freeze for TableFactorwhere
*const u8 is !null: Freeze,
PhantomData<Ident>: Freeze,
PhantomData<u8>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const DataType is !null: Freeze,
PhantomData<DataType>: Freeze,
*const Query is !null: Freeze,
PhantomData<Query>: Freeze,
PhantomData<CaseWhen>: Freeze,
PhantomData<StructField>: Freeze,
PhantomData<StructExprField>: Freeze,
*const Function is !null: Freeze,
PhantomData<Function>: Freeze,
PhantomData<(Ident, Expr)>: Freeze,
PhantomData<FunctionArg>: Freeze,
PhantomData<OrderByExpr>: Freeze,
*const TableWithJoins is !null: Freeze,
PhantomData<TableWithJoins>: Freeze,
*const TableFactor is !null: Freeze,
PhantomData<TableFactor>: Freeze,
PhantomData<ExprWithAlias>: Freeze,
PhantomData<UnpivotColumns>: Freeze,
*const MatchRecognize is !null: Freeze,
PhantomData<MatchRecognize>: Freeze,
*const Align is !null: Freeze,
PhantomData<Align>: Freeze,
impl Move for TableFactor
impl RefUnwindSafe for TableFactor
impl Send for TableFactor
impl Sync for TableFactor
impl Unpin for TableFactor
impl UnsafeUnpin for TableFactorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Ident>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const DataType is !null: UnsafeUnpin,
PhantomData<DataType>: UnsafeUnpin,
*const Query is !null: UnsafeUnpin,
PhantomData<Query>: UnsafeUnpin,
PhantomData<CaseWhen>: UnsafeUnpin,
PhantomData<StructField>: UnsafeUnpin,
PhantomData<StructExprField>: UnsafeUnpin,
*const Function is !null: UnsafeUnpin,
PhantomData<Function>: UnsafeUnpin,
PhantomData<(Ident, Expr)>: UnsafeUnpin,
PhantomData<FunctionArg>: UnsafeUnpin,
PhantomData<OrderByExpr>: UnsafeUnpin,
*const TableWithJoins is !null: UnsafeUnpin,
PhantomData<TableWithJoins>: UnsafeUnpin,
*const TableFactor is !null: UnsafeUnpin,
PhantomData<TableFactor>: UnsafeUnpin,
PhantomData<ExprWithAlias>: UnsafeUnpin,
PhantomData<UnpivotColumns>: UnsafeUnpin,
*const MatchRecognize is !null: UnsafeUnpin,
PhantomData<MatchRecognize>: UnsafeUnpin,
*const Align is !null: UnsafeUnpin,
PhantomData<Align>: UnsafeUnpin,
impl UnwindSafe for TableFactorwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<DataType>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
BoxRaw<TableWithJoins>: UnwindSafe,
BoxRaw<TableFactor>: UnwindSafe,
BoxRaw<MatchRecognize>: UnwindSafe,
BoxRaw<Align>: UnwindSafe,
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.