File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ use std::sync::Arc;
12
12
/// The root of the plan DAG _cannot_ be a scalar operator (and thus for now can only be a logical
13
13
/// operator).
14
14
#[ derive( Clone ) ]
15
- pub enum LogicalPlan {
16
- LogicalRoot ( Arc < LogicalOperator < LogicalLink > > ) ,
15
+ pub struct LogicalPlan {
16
+ root : Arc < LogicalOperator < LogicalLink > > ,
17
17
}
18
18
19
19
/// A link in a [`LogicalPlan`] to a node.
@@ -26,9 +26,6 @@ pub enum LogicalPlan {
26
26
///
27
27
/// - [`super::logical_plan::LogicalLink`] only allows a logical operator to have other logical
28
28
/// operators or scalar operators as children since that is all [`LogicalPlan`] needs
29
- /// - [`super::physical_plan::LogicalLink`] allows a logical operator to also have a physical
30
- /// operator as a child (since [`PhysicalPlan`] needs to encode both logical and physical
31
- /// operators).
32
29
/// - [`super::partial_logical_plan::LogicalLink`] allows a logical operator to also have a
33
30
/// [`GroupId`] as a child (since the [`PartialLogicalPlan`] is a partially materialized query
34
31
/// plan).
Original file line number Diff line number Diff line change @@ -3,18 +3,8 @@ use std::sync::Arc;
3
3
4
4
/// TODO Add docs.
5
5
#[ derive( Clone ) ]
6
- pub enum PhysicalPlan {
7
- LogicalRoot ( LogicalLink ) ,
8
- PhysicalRoot ( PhysicalLink ) ,
9
- }
10
-
11
- /// TODO Add docs.
12
- #[ allow( clippy:: enum_variant_names) ]
13
- #[ derive( Clone ) ]
14
- pub enum LogicalLink {
15
- LogicalNode ( Arc < LogicalOperator < LogicalLink > > ) ,
16
- PhysicalNode ( Arc < PhysicalOperator < PhysicalLink > > ) ,
17
- ScalarNode ( Arc < ScalarOperator < ScalarLink > > ) ,
6
+ pub struct PhysicalPlan {
7
+ root : Arc < PhysicalOperator < PhysicalLink > > ,
18
8
}
19
9
20
10
/// TODO Add docs.
You can’t perform that action at this time.
0 commit comments