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.

//! Adapts SQL `MATCH_RECOGNIZE` table expressions for DataFusion planning.
//!
//! This crate connects DataFusion's parsed SQL to the SQL-independent planning
//! crate:
//!
//! - [`parser`] validates row patterns and converts them to the shared pattern
//!   type;
//! - [`adapter`] binds input expressions, column references, and cast types, and
//!   supplies DataFusion function lookup for shared lowering of structured calls; and
//! - [`planning`] integrates that adaptation with DataFusion's
//!   `RelationPlanner` hook.
//!
//! ## Integration
//!
//! Applications normally use the [facade installer]. It registers this SQL
//! adapter together with the functions, physical query planner, and optimizer
//! rules needed to execute the resulting plans.
//!
//! [`MatchRecognizePlanner`] is the component-level entry point for hosts that
//! perform that complete registration themselves. Registering the relation
//! planner alone enables the SQL-to-logical-plan step, but the resulting plans
//! still need the execution components to run.
//!
//! [facade installer]: https://github.com/datafusion-contrib/datafusion-match-recognize/blob/main/match-recognize/README.md#quick-start

pub mod adapter;
pub mod conversions;
pub mod parser;
pub mod planning;

pub use planning::MatchRecognizePlanner;