Skip to content

Commit 2f5cb73

Browse files
committed
Move index type
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 8dbd8bd commit 2f5cb73

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed

src/query/service/src/pipelines/processors/transforms/hash_join/join_hash_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ use common_datavalues::NullableType;
4444
use common_exception::ErrorCode;
4545
use common_exception::Result;
4646
use common_hashtable::HashMap;
47+
use common_planner::IndexType;
4748
use parking_lot::RwLock;
4849
use primitive_types::U256;
4950
use primitive_types::U512;
@@ -59,7 +60,6 @@ use crate::sessions::TableContext;
5960
use crate::sql::executor::PhysicalScalar;
6061
use crate::sql::planner::plans::JoinType;
6162
use crate::sql::plans::JoinType::Mark;
62-
use crate::sql::IndexType;
6363

6464
pub struct SerializerHashTable {
6565
pub(crate) hash_table: HashMap<KeysRef, Vec<RowPtr>>,

src/query/service/src/sql/executor/expression_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use common_datavalues::DataValue;
1717
use common_exception::ErrorCode;
1818
use common_exception::Result;
1919
use common_legacy_planners::Expression;
20+
use common_planner::IndexType;
2021

2122
use crate::sql::executor::util::format_field_name;
22-
use crate::sql::planner::IndexType;
2323
use crate::sql::plans::AggregateFunction;
2424
use crate::sql::plans::AndExpr;
2525
use crate::sql::plans::BoundColumnRef;

src/query/service/src/sql/executor/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use common_ast::ast::FormatTreeNode;
1616
use common_exception::ErrorCode;
1717
use common_exception::Result;
1818
use common_legacy_planners::StageKind;
19+
use common_planner::IndexType;
1920
use itertools::Itertools;
2021

2122
use super::AggregateFinal;
@@ -30,7 +31,6 @@ use super::Project;
3031
use super::Sort;
3132
use super::TableScan;
3233
use super::UnionAll;
33-
use crate::sql::planner::IndexType;
3434
use crate::sql::MetadataRef;
3535
use crate::sql::DUMMY_TABLE_INDEX;
3636

src/query/service/src/sql/executor/physical_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ use common_legacy_planners::ReadDataSourcePlan;
2828
use common_legacy_planners::StageKind;
2929
use common_legacy_planners::SINK_SCHEMA;
3030
use common_meta_app::schema::TableInfo;
31+
use common_planner::IndexType;
3132

3233
use super::physical_scalar::PhysicalScalar;
3334
use super::AggregateFunctionDesc;
3435
use super::SortDesc;
3536
use crate::sql::optimizer::ColumnSet;
36-
use crate::sql::planner::IndexType;
3737
use crate::sql::plans::JoinType;
3838
use crate::sql::ColumnBinding;
3939

src/query/service/src/sql/executor/physical_scalar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ use common_datavalues::format_data_type_sql;
1616
use common_datavalues::DataTypeImpl;
1717
use common_datavalues::DataValue;
1818
use common_exception::Result;
19+
use common_planner::IndexType;
1920

2021
use super::ColumnID;
21-
use crate::sql::planner::IndexType;
2222
use crate::sql::MetadataRef;
2323

2424
/// Serializable and desugared representation of `Scalar`.

src/query/service/src/sql/executor/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
use common_exception::ErrorCode;
1616
use common_exception::Result;
17+
use common_planner::IndexType;
1718
use once_cell::sync::Lazy;
1819
use regex::Regex;
1920

2021
use crate::sql::optimizer::SExpr;
21-
use crate::sql::planner::IndexType;
2222
use crate::sql::plans::Operator;
2323

2424
/// Check if all plans in an expression are physical plans

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ use crate::sessions::TableContext;
5656
const PROBE_INSERT_INITIAL_TOKENS: usize = 128;
5757
const PROBE_INSERT_MAX_TOKENS: usize = 128 * 8;
5858

59-
pub type IndexType = usize;
60-
6159
pub struct Planner {
6260
ctx: Arc<dyn TableContext>,
6361
}

0 commit comments

Comments
 (0)