Skip to content

Commit

Permalink
[task apache#8213]Port tests in select.rs to sqllogictest
Browse files Browse the repository at this point in the history
Signed-off-by: tangruilin <[email protected]>
  • Loading branch information
Tangruilin committed Jan 24, 2024
1 parent 827668a commit 151dd52
Show file tree
Hide file tree
Showing 3 changed files with 299 additions and 567 deletions.
3 changes: 3 additions & 0 deletions datafusion/core/tests/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use datafusion::{assert_batches_eq, assert_batches_sorted_eq};
use datafusion::{datasource::MemTable, physical_plan::collect};
use datafusion::{execution::context::SessionContext, physical_plan::displayable};
use datafusion_common::{assert_contains, assert_not_contains};
use nix::libc::tm;
use object_store::path::Path;
use std::fs::File;
use std::io::Write;
Expand Down Expand Up @@ -240,6 +241,8 @@ async fn create_ctx_with_partition(

let schema = populate_csv_partitions(tmp_dir, partition_count, ".csv")?;

println!("@@@@{:?}", schema);

// register csv file with the execution context
ctx.register_csv(
"test",
Expand Down
Loading

0 comments on commit 151dd52

Please sign in to comment.