datafusion-match-recognize 0.55.0

SQL MATCH_RECOGNIZE row-pattern matching for Apache DataFusion
Documentation
// Licensed under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.  See the License for the
// specific language governing permissions and limitations
// under the License.
//
// This product includes software developed at Datadog (https://www.datadoghq.com/) Copyright 2025-Present Datadog, Inc.

//! Advances the compiled NFA over partition rows.
//!
//! `PatternMatcher::start_candidate_scan` tries one candidate start row and
//! `PatternMatcher::resume_candidate_scan` continues its private continuation.
//! The continuation records the current candidate, transition, and in-progress
//! history evaluation across cooperative yields.
//!
//! A fresh candidate uses the lane executor only when its active executable
//! variant carries an admitted lane program. Otherwise it uses the generic NFA
//! executor. The choice is made before candidate mutation and remains fixed for
//! the continuation; both routes share predicate/update, precedence,
//! selected-path validation, skip, and output-commit semantics.

// Transition kernels and resumable state.
pub(super) mod aggregate_engine;
pub(in crate::execution::matching) mod arena;
pub(crate) mod lane_scan;
pub(crate) use crate::execution::matching::graph::ordered_transitions;
pub(crate) use crate::execution::matching::graph::policies;
pub(super) mod predicate_decision;
pub(super) mod provider;
pub(super) mod row_data;
pub(super) mod scan;
pub(crate) mod state;
pub(crate) use crate::execution::common::memory as state_growth;
mod statistical_state;
pub(super) mod symbol_evaluator;
mod transition_kernel;
#[cfg(test)]
pub(crate) use crate::execution::matching::graph::path_nodes as transition_utils;
pub(super) mod direct_predicate;
pub(crate) mod types;
mod vm_executor;
pub(in crate::execution::matching) mod vm_scratch;

// Row data, selected evaluators, and scan coordination.
pub(crate) mod compiled_program;
pub(crate) mod continuation;
pub(crate) mod thread_store;