@@ -47,12 +47,7 @@ pub enum QueryPlan {
4747 // Query will be executed via Data Fusion
4848 DataFusionSelect ( LogicalPlan , DFSessionContext ) ,
4949 // Query will be executed via DataFusion and saved to session
50- CreateTempTable (
51- LogicalPlan ,
52- DFSessionContext ,
53- String ,
54- Arc < TempTableManager > ,
55- ) ,
50+ CreateTempTable ( LogicalPlan , DFSessionContext , String , Arc < TempTableManager > ) ,
5651}
5752
5853impl fmt:: Debug for QueryPlan {
@@ -85,8 +80,9 @@ impl fmt::Debug for QueryPlan {
8580impl QueryPlan {
8681 pub fn as_logical_plan ( & self ) -> LogicalPlan {
8782 match self {
88- QueryPlan :: DataFusionSelect ( plan, _)
89- | QueryPlan :: CreateTempTable ( plan, _, _, _) => plan. clone ( ) ,
83+ QueryPlan :: DataFusionSelect ( plan, _) | QueryPlan :: CreateTempTable ( plan, _, _, _) => {
84+ plan. clone ( )
85+ }
9086 QueryPlan :: MetaOk ( _, _) | QueryPlan :: MetaTabular ( _, _) => {
9187 panic ! ( "This query doesnt have a plan, because it already has values for response" )
9288 }
@@ -110,8 +106,7 @@ impl QueryPlan {
110106
111107 pub fn print ( & self , pretty : bool ) -> Result < String , CubeError > {
112108 match self {
113- QueryPlan :: DataFusionSelect ( plan, _)
114- | QueryPlan :: CreateTempTable ( plan, _, _, _) => {
109+ QueryPlan :: DataFusionSelect ( plan, _) | QueryPlan :: CreateTempTable ( plan, _, _, _) => {
115110 if pretty {
116111 Ok ( plan. display_indent ( ) . to_string ( ) )
117112 } else {
0 commit comments