Skip to content

Commit

Permalink
fix: remove bad test cause
Browse files Browse the repository at this point in the history
  • Loading branch information
holicc committed Oct 23, 2024
1 parent 30ad83b commit 92ab468
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 169 deletions.
9 changes: 6 additions & 3 deletions qurious/src/execution/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ impl ExecuteSession {

pub fn execute_logical_plan(&self, plan: &LogicalPlan) -> Result<Vec<RecordBatch>> {
let plan = self.optimizer.optimize(plan)?;
println!("plan: {:#?}", plan);
match &plan {
LogicalPlan::Ddl(ddl) => self.execute_ddl(ddl),
LogicalPlan::Dml(stmt) => self.execute_dml(stmt),
Expand Down Expand Up @@ -252,19 +253,21 @@ mod tests {
#[test]
fn test_create_table() -> Result<()> {
let session = ExecuteSession::new()?;
session.sql("create table t (v1 int, v2 int);")?;
session.sql("create table x(a int, b int);")?;
session.sql("create table y(c int, d int);")?;
// session.sql("create table b(v1 int, v2 float);")?;
// session.sql("create table t(v1 int not null, v2 int not null, v3 double not null)")?;

// session.sql("create table x(a int, b int);")?;
// session.sql("create table y(c int, d int);")?;

session.sql("insert into t values (1, 0), ( 2, 2), (3, 15), (2, 12), (3, 9), (1, 5);")?;
session.sql("insert into x values (1, 2), (1, 3);")?;
session.sql("insert into y values (1, 5), (1, 6), (2, 7);")?;
// session.sql("insert into b select v1, v2 from a;")?;
// session.sql("INSERT INTO test VALUES (1, 1), (2, 2), (3, 3), (3, 5), (NULL, NULL);")?;
// session.sql("select a, b, c, d from x join y on a = c")?;
println!("++++++++++++++");
let batch = session.sql("select 42")?;
let batch = session.sql("select a, b, c, d from x, y;")?;

print_batches(&batch)?;

Expand Down
117 changes: 0 additions & 117 deletions qurious/tests/join_left_inner.slt

This file was deleted.

49 changes: 0 additions & 49 deletions qurious/tests/join_semi_anti.slt

This file was deleted.

0 comments on commit 92ab468

Please sign in to comment.