Skip to content

Commit f198d60

Browse files
authored
refactor(planner): refine the file organization (#17687)
1 parent 8ab3162 commit f198d60

File tree

23 files changed

+78
-22
lines changed

23 files changed

+78
-22
lines changed

src/query/service/src/interpreters/interpreter_table_recluster.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ use databend_common_sql::plans::set_update_stream_columns;
5454
use databend_common_sql::plans::BoundColumnRef;
5555
use databend_common_sql::plans::Plan;
5656
use databend_common_sql::plans::ReclusterPlan;
57-
use databend_common_sql::query_executor::QueryExecutor;
5857
use databend_common_sql::IdentifierNormalizer;
5958
use databend_common_sql::MetadataRef;
6059
use databend_common_sql::NameResolutionContext;
60+
use databend_common_sql::QueryExecutor;
6161
use databend_common_sql::ScalarExpr;
6262
use databend_common_sql::TypeChecker;
6363
use databend_enterprise_hilbert_clustering::get_hilbert_clustering_handler;

src/query/service/src/schedulers/scheduler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::sync::Arc;
1717
use async_trait::async_trait;
1818
use databend_common_exception::Result;
1919
use databend_common_expression::DataBlock;
20-
use databend_common_sql::planner::query_executor::QueryExecutor;
20+
use databend_common_sql::planner::QueryExecutor;
2121
use databend_common_sql::Planner;
2222
use futures_util::TryStreamExt;
2323

src/query/sql/src/planner/binder/bind_query/bind_select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use log::warn;
4848
use crate::optimizer::ir::SExpr;
4949
use crate::planner::binder::BindContext;
5050
use crate::planner::binder::Binder;
51-
use crate::planner::query_executor::QueryExecutor;
51+
use crate::planner::QueryExecutor;
5252
use crate::AsyncFunctionRewriter;
5353
use crate::ColumnBinding;
5454

src/query/sql/src/planner/binder/binder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use crate::binder::wrap_cast;
6060
use crate::binder::ColumnBindingBuilder;
6161
use crate::normalize_identifier;
6262
use crate::optimizer::ir::SExpr;
63-
use crate::planner::query_executor::QueryExecutor;
63+
use crate::planner::QueryExecutor;
6464
use crate::plans::CreateFileFormatPlan;
6565
use crate::plans::CreateRolePlan;
6666
use crate::plans::DescConnectionPlan;

src/query/sql/src/planner/binder/udf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ use databend_common_meta_app::principal::UserDefinedFunction;
3535

3636
use crate::normalize_identifier;
3737
use crate::optimizer::ir::SExpr;
38+
use crate::planner::expression::UDFValidator;
3839
use crate::planner::resolve_type_name_udf;
39-
use crate::planner::udf_validator::UDFValidator;
4040
use crate::plans::AlterUDFPlan;
4141
use crate::plans::CreateUDFPlan;
4242
use crate::plans::DropUDFPlan;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright 2021 Datafuse Labs
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+
mod query_executor;
16+
mod stream_column;
17+
18+
pub use query_executor::QueryExecutor;
19+
pub use stream_column::StreamContext;
20+
pub use stream_column::CURRENT_BLOCK_ID_COL_NAME;
21+
pub use stream_column::CURRENT_BLOCK_ROW_NUM_COL_NAME;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2021 Datafuse Labs
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+
mod expression_parser;
16+
mod udf_validator;
17+
18+
pub use expression_parser::*;
19+
pub use udf_validator::UDFValidator;

0 commit comments

Comments
 (0)