Skip to content

Commit 4617bef

Browse files
committed
refactor: move builder to a better place
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
1 parent c0699fb commit 4617bef

File tree

7 files changed

+21
-3
lines changed

7 files changed

+21
-3
lines changed

src/query/service/tests/it/sql/planner/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
mod builders;
1516
mod format;
16-
mod select_builder;
1717
mod semantic;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2022 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 select_builder;
16+
pub use select_builder::SelectBuilder;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ mod aggregate;
1616
mod bind_context;
1717
#[allow(clippy::module_inception)]
1818
mod binder;
19+
/// SQL builders;
20+
mod builders;
1921
mod copy;
2022
mod ddl;
2123
mod delete;
@@ -40,5 +42,6 @@ mod update;
4042
pub use aggregate::AggregateInfo;
4143
pub use bind_context::*;
4244
pub use binder::Binder;
45+
pub use builders::*;
4346
pub use scalar::ScalarBinder;
4447
pub use scalar_common::*;

src/query/sql/src/planner/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ mod format;
1717
mod metadata;
1818
#[allow(clippy::module_inception)]
1919
mod planner;
20-
mod select_builder;
2120
mod semantic;
2221

2322
pub(crate) mod binder;
@@ -28,12 +27,12 @@ pub use binder::BindContext;
2827
pub use binder::Binder;
2928
pub use binder::ColumnBinding;
3029
pub use binder::ScalarBinder;
30+
pub use binder::SelectBuilder;
3131
pub use binder::Visibility;
3232
pub use expression_parser::ExpressionParser;
3333
pub use metadata::*;
3434
pub use planner::Planner;
3535
pub use plans::ScalarExpr;
36-
pub use select_builder::SelectBuilder;
3736
pub use semantic::normalize_identifier;
3837
pub use semantic::validate_function_arg;
3938
pub use semantic::IdentifierNormalizer;

0 commit comments

Comments
 (0)