File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ pub mod insta;
22pub mod localhost;
33pub mod parquet;
44pub mod plan;
5+ pub mod tpch;
File renamed without changes.
Original file line number Diff line number Diff line change 1+ #[ allow( dead_code) ]
12mod common;
2- mod tpch;
33
44#[ cfg( test) ]
55mod tests {
6- use crate :: tpch :: tpch_query ;
7- use crate :: { assert_snapshot , tpch} ;
6+ use crate :: assert_snapshot ;
7+ use crate :: common :: tpch:: tpch_query ;
88 use datafusion:: arrow:: util:: pretty:: pretty_format_batches;
9- use datafusion:: execution:: { SessionState , SessionStateBuilder } ;
9+ use datafusion:: execution:: SessionStateBuilder ;
1010 use datafusion:: physical_plan:: { displayable, execute_stream} ;
1111 use datafusion:: prelude:: { SessionConfig , SessionContext } ;
1212 use datafusion_distributed:: physical_optimizer:: DistributedPhysicalOptimizerRule ;
@@ -69,20 +69,14 @@ mod tests {
6969 " ,
7070 ) ;
7171
72- /* let batches = pretty_format_batches(
73- &execute_stream(physical, ctx.task_ctx())?
72+ let batches = pretty_format_batches (
73+ & execute_stream ( physical. clone ( ) , ctx. task_ctx ( ) ) ?
7474 . try_collect :: < Vec < _ > > ( )
7575 . await ?,
7676 ) ?;
7777
7878 assert_snapshot ! ( batches, @r"
79- +----------+-----------+
80- | count(*) | RainToday |
81- +----------+-----------+
82- | 66 | Yes |
83- | 300 | No |
84- +----------+-----------+
85- ");*/
79+ " ) ;
8680
8781 Ok ( ( ) )
8882 }
You can’t perform that action at this time.
0 commit comments