pub struct MatchRecognize {
pub this: Option<Box<Expression>>,
pub partition_by: Option<Vec<Expression>>,
pub order_by: Option<Vec<Ordered>>,
pub measures: Option<Vec<MatchRecognizeMeasure>>,
pub rows: Option<MatchRecognizeRows>,
pub after: Option<MatchRecognizeAfter>,
pub pattern: Option<String>,
pub define: Option<Vec<(Identifier, Expression)>>,
pub alias: Option<Identifier>,
pub alias_explicit_as: bool,
}Expand description
MATCH_RECOGNIZE clause for row pattern matching (Oracle/Snowflake/Presto/Trino)
Fields§
§this: Option<Box<Expression>>Source table/expression
partition_by: Option<Vec<Expression>>PARTITION BY expressions
order_by: Option<Vec<Ordered>>ORDER BY expressions
measures: Option<Vec<MatchRecognizeMeasure>>MEASURES definitions
rows: Option<MatchRecognizeRows>Row semantics (ONE ROW PER MATCH, ALL ROWS PER MATCH, etc.)
after: Option<MatchRecognizeAfter>AFTER MATCH SKIP behavior
pattern: Option<String>PATTERN definition (stored as raw string for complex regex patterns)
define: Option<Vec<(Identifier, Expression)>>DEFINE clauses (pattern variable definitions)
alias: Option<Identifier>Optional alias for the result
alias_explicit_as: boolWhether AS keyword was explicitly present before alias
Trait Implementations§
Source§impl Clone for MatchRecognize
impl Clone for MatchRecognize
Source§fn clone(&self) -> MatchRecognize
fn clone(&self) -> MatchRecognize
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 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
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 Freeze for MatchRecognize
impl RefUnwindSafe for MatchRecognize
impl Send for MatchRecognize
impl Sync for MatchRecognize
impl Unpin for MatchRecognize
impl UnwindSafe for MatchRecognize
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