File tree Expand file tree Collapse file tree 6 files changed +6
-5
lines changed Expand file tree Collapse file tree 6 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 23
23
24
24
mod metadata;
25
25
pub use metadata:: IndexType ;
26
+ pub use metadata:: DUMMY_TABLE_INDEX ;
Original file line number Diff line number Diff line change 16
16
///
17
17
/// This type will be used across the whole planner.
18
18
pub type IndexType = usize ;
19
+
20
+ /// Use IndexType::MAX to represent dummy table.
21
+ pub static DUMMY_TABLE_INDEX : IndexType = IndexType :: MAX ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ use common_exception::ErrorCode;
17
17
use common_exception:: Result ;
18
18
use common_legacy_planners:: StageKind ;
19
19
use common_planner:: IndexType ;
20
+ use common_planner:: DUMMY_TABLE_INDEX ;
20
21
use itertools:: Itertools ;
21
22
22
23
use super :: AggregateFinal ;
@@ -32,7 +33,6 @@ use super::Sort;
32
33
use super :: TableScan ;
33
34
use super :: UnionAll ;
34
35
use crate :: sql:: MetadataRef ;
35
- use crate :: sql:: DUMMY_TABLE_INDEX ;
36
36
37
37
impl PhysicalPlan {
38
38
pub fn format ( & self , metadata : MetadataRef ) -> Result < String > {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ use common_legacy_planners::Extras;
26
26
use common_legacy_planners:: PrewhereInfo ;
27
27
use common_legacy_planners:: Projection ;
28
28
use common_legacy_planners:: StageKind ;
29
+ use common_planner:: DUMMY_TABLE_INDEX ;
29
30
use common_storages_fuse:: TableContext ;
30
31
use itertools:: Itertools ;
31
32
@@ -60,7 +61,6 @@ use crate::sql::plans::Scalar;
60
61
use crate :: sql:: Metadata ;
61
62
use crate :: sql:: MetadataRef ;
62
63
use crate :: sql:: ScalarExpr ;
63
- use crate :: sql:: DUMMY_TABLE_INDEX ;
64
64
use crate :: storages:: ToReadDataSourcePlan ;
65
65
66
66
pub struct PhysicalPlanBuilder {
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ use parking_lot::RwLock;
25
25
use crate :: sql:: optimizer:: ColumnSet ;
26
26
use crate :: storages:: Table ;
27
27
28
- pub static DUMMY_TABLE_INDEX : IndexType = IndexType :: MAX ;
29
-
30
28
pub type MetadataRef = Arc < RwLock < Metadata > > ;
31
29
32
30
#[ derive( Clone ) ]
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ pub use metadata::ColumnEntry;
42
42
pub use metadata:: Metadata ;
43
43
pub use metadata:: MetadataRef ;
44
44
pub use metadata:: TableEntry ;
45
- pub use metadata:: DUMMY_TABLE_INDEX ;
46
45
pub use semantic:: normalize_identifier;
47
46
pub use semantic:: IdentifierNormalizer ;
48
47
pub use semantic:: NameResolutionContext ;
You can’t perform that action at this time.
0 commit comments