Skip to content

Commit e4e2dbb

Browse files
committed
Move common tpch module to common
1 parent 15e4edf commit e4e2dbb

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

tests/common/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pub mod insta;
22
pub mod localhost;
33
pub mod parquet;
44
pub mod plan;
5+
pub mod tpch;
File renamed without changes.

tests/stage_planning.rs

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
#[allow(dead_code)]
12
mod common;
2-
mod tpch;
33

44
#[cfg(test)]
55
mod 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
}

0 commit comments

Comments
 (0)