File tree 2 files changed +30
-3
lines changed
2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,17 @@ impl DisplayAs for LazyMemoryExec {
193
193
)
194
194
}
195
195
DisplayFormatType :: TreeRender => {
196
- // TODO: collect info
197
- write ! ( f, "" )
196
+ //TODO: remove batch_size, add one line per generator
197
+ writeln ! (
198
+ f,
199
+ "batch_generators={}" ,
200
+ self . batch_generators
201
+ . iter( )
202
+ . map( |g| g. read( ) . to_string( ) )
203
+ . collect:: <Vec <String >>( )
204
+ . join( ", " )
205
+ ) ?;
206
+ Ok ( ( ) )
198
207
}
199
208
}
200
209
}
Original file line number Diff line number Diff line change @@ -725,7 +725,12 @@ physical_plan
725
725
32)└─────────────┬─────────────┘
726
726
33)┌─────────────┴─────────────┐
727
727
34)│ LazyMemoryExec │
728
- 35)└───────────────────────────┘
728
+ 35)│ -------------------- │
729
+ 36)│ batch_generators: │
730
+ 37)│ generate_series: start=1, │
731
+ 38)│ end=1000, batch_size │
732
+ 39)│ =8192 │
733
+ 40)└───────────────────────────┘
729
734
730
735
query TT
731
736
explain select
@@ -1641,3 +1646,16 @@ physical_plan
1641
1646
08)│ format: memory │
1642
1647
09)│ rows: 1 │
1643
1648
10)└───────────────────────────┘
1649
+
1650
+ # Test explain tree for LazyMemoryExec
1651
+ query TT
1652
+ EXPLAIN SELECT * FROM generate_series(1, 100)
1653
+ ----
1654
+ physical_plan
1655
+ 01)┌───────────────────────────┐
1656
+ 02)│ LazyMemoryExec │
1657
+ 03)│ -------------------- │
1658
+ 04)│ batch_generators: │
1659
+ 05)│ generate_series: start=1, │
1660
+ 06)│ end=100, batch_size=8192 │
1661
+ 07)└───────────────────────────┘
You can’t perform that action at this time.
0 commit comments