query/
lib.rs

1// Copyright 2023 Greptime Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![feature(let_chains)]
16#![feature(int_roundings)]
17#![feature(try_blocks)]
18#![feature(stmt_expr_attributes)]
19#![feature(iterator_try_collect)]
20
21mod analyze;
22pub mod dataframe;
23pub mod datafusion;
24pub mod dist_plan;
25pub mod dummy_catalog;
26pub mod error;
27pub mod executor;
28pub mod log_query;
29pub mod metrics;
30pub mod optimizer;
31pub mod options;
32pub mod parser;
33mod part_sort;
34pub mod physical_wrapper;
35pub mod plan;
36pub mod planner;
37pub mod promql;
38pub mod query_engine;
39mod range_select;
40pub mod region_query;
41pub mod sql;
42pub(crate) mod window_sort;
43
44#[cfg(test)]
45pub(crate) mod test_util;
46#[cfg(test)]
47mod tests;
48
49pub use crate::datafusion::DfContextProviderAdapter;
50pub use crate::query_engine::{
51    QueryEngine, QueryEngineContext, QueryEngineFactory, QueryEngineRef,
52};