pub struct MatchRecognize {
pub partition_by: Vec<Expr>,
pub order_by: Vec<OrderByExpr>,
pub measures: Vec<(Expr, Ident)>,
pub after_match: Option<AfterMatchSkip>,
pub pattern: RowPattern,
pub define: Vec<(Ident, Expr)>,
pub options: Vec<SqlOption>,
}Expand description
MATCH_RECOGNIZE (...): row pattern recognition over an ordered input. BigQuery returns one row per match:
the PARTITION BY columns, then the MEASURES.
Fields§
§partition_by: Vec<Expr>§order_by: Vec<OrderByExpr>§measures: Vec<(Expr, Ident)>MEASURES expr AS name, ...: every measure is named.
after_match: Option<AfterMatchSkip>§pattern: RowPattern§define: Vec<(Ident, Expr)>DEFINE symbol AS condition, ...; a symbol the pattern uses without a definition matches every row.
options: Vec<SqlOption>Implementations§
Trait Implementations§
Source§impl Clone for MatchRecognize
impl Clone for MatchRecognize
Source§impl Debug for MatchRecognize
impl Debug for MatchRecognize
Source§impl<'de> Deserialize<'de> for MatchRecognize
impl<'de> Deserialize<'de> for MatchRecognize
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 MatchRecognize
Source§impl Hash for MatchRecognize
impl Hash for MatchRecognize
Source§impl PartialEq for MatchRecognize
impl PartialEq for MatchRecognize
Source§impl Serialize for MatchRecognize
impl Serialize for MatchRecognize
impl StructuralPartialEq for MatchRecognize
Auto Trait Implementations§
impl Forget for MatchRecognize
impl Freeze for MatchRecognizewhere
*const u8 is !null: Freeze,
PhantomData<Expr>: Freeze,
PhantomData<OrderByExpr>: Freeze,
PhantomData<(Expr, Ident)>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RowPattern>: Freeze,
*const RowPattern is !null: Freeze,
PhantomData<(Ident, Expr)>: Freeze,
PhantomData<SqlOption>: Freeze,
impl Move for MatchRecognize
impl RefUnwindSafe for MatchRecognize
impl Send for MatchRecognize
impl Sync for MatchRecognize
impl Unpin for MatchRecognize
impl UnsafeUnpin for MatchRecognizewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
PhantomData<OrderByExpr>: UnsafeUnpin,
PhantomData<(Expr, Ident)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RowPattern>: UnsafeUnpin,
*const RowPattern is !null: UnsafeUnpin,
PhantomData<(Ident, Expr)>: UnsafeUnpin,
PhantomData<SqlOption>: UnsafeUnpin,
impl UnwindSafe for MatchRecognizewhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<DataType>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
BoxRaw<RowPattern>: 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.