1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// 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#normal-application-path
pub use MatchRecognizePlanner;