@@ -34,7 +34,7 @@ use crate::queryplanner::providers::InfoSchemaQueryCacheTableProvider;
3434use crate :: queryplanner:: query_executor:: {
3535 ClusterSendExec , CubeTable , CubeTableExec , InlineTableProvider ,
3636} ;
37- use crate :: queryplanner:: rolling:: RollingWindowAggregate ;
37+ use crate :: queryplanner:: rolling:: { RollingWindowAggExec , RollingWindowAggregate } ;
3838use crate :: queryplanner:: serialized_plan:: { IndexSnapshot , RowRange } ;
3939use crate :: queryplanner:: tail_limit:: TailLimitExec ;
4040use crate :: queryplanner:: topk:: SortColumn ;
@@ -67,9 +67,8 @@ pub struct PPOptions {
6767}
6868
6969impl PPOptions {
70- // TODO upgrade DF: Rename
7170 #[ allow( unused) ]
72- pub fn show_all ( ) -> PPOptions {
71+ pub fn show_most ( ) -> PPOptions {
7372 PPOptions {
7473 show_filters : true ,
7574 show_sort_by : true ,
@@ -361,9 +360,6 @@ pub fn pp_plan_ext(p: &LogicalPlan, opts: &PPOptions) -> String {
361360 self . output += & format ! ( "PanicWorker" )
362361 } else if let Some ( _) = node. as_any ( ) . downcast_ref :: < RollingWindowAggregate > ( ) {
363362 self . output += & format ! ( "RollingWindowAggreagate" ) ;
364- // TODO upgrade DF
365- // } else if let Some(alias) = node.as_any().downcast_ref::<LogicalAlias>() {
366- // self.output += &format!("LogicalAlias, alias: {}", alias.alias);
367363 } else {
368364 log:: error!( "unknown extension node" )
369365 }
@@ -732,12 +728,8 @@ fn pp_phys_plan_indented(p: &dyn ExecutionPlan, indent: usize, o: &PPOptions, ou
732728 } else {
733729 * out += & format ! ( "{}" , DefaultDisplay ( dse) ) ;
734730 }
735-
736- // TODO upgrade DF
737- // } else if let Some(_) = a.downcast_ref::<SkipExec>() {
738- // *out += "SkipRows";
739- // } else if let Some(_) = a.downcast_ref::<RollingWindowAggExec>() {
740- // *out += "RollingWindowAgg";
731+ } else if let Some ( _) = a. downcast_ref :: < RollingWindowAggExec > ( ) {
732+ * out += "RollingWindowAgg" ;
741733 } else if let Some ( _) = a. downcast_ref :: < LastRowByUniqueKeyExec > ( ) {
742734 * out += "LastRowByUniqueKey" ;
743735 } else if a. is :: < MemoryExec > ( ) {
0 commit comments