Skip to content

Commit

Permalink
fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hozan23 committed Oct 11, 2024
1 parent aa4096d commit 98c2b7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sql/sql_provider_datafusion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ mod tests {
tracing::dispatcher::set_default(&dispatch)
}

mod sql_table_tests {
mod sql_table_plan_to_sql_tests {
use std::any::Any;

use arrow_schema::{DataType, Field, Schema, TimeUnit};
Expand Down Expand Up @@ -476,7 +476,7 @@ mod tests {
async fn test_sql_to_string() -> Result<(), Box<dyn Error + Send + Sync>> {
let sql_table = new_sql_table("users", Some(Engine::SQLite))?;
let result = sql_table.scan_to_sql(Some(&vec![0]), &[], None)?;
assert_eq!(result, r#"SELECT "name" FROM users "#);
assert_eq!(result, r#"SELECT `users`.`name` FROM `users`"#);
Ok(())
}

Expand All @@ -488,7 +488,7 @@ mod tests {
let result = sql_table.scan_to_sql(Some(&vec![0, 1]), &filters, Some(3))?;
assert_eq!(
result,
r#"SELECT "name", age FROM users WHERE ((age >= 30) AND ("name" = 'x')) LIMIT 3"#
r#"SELECT `users`.`name`, `users`.`age` FROM `users` WHERE ((`users`.`age` >= 30) AND (`users`.`name` = 'x')) LIMIT 3"#
);
Ok(())
}
Expand Down

0 comments on commit 98c2b7b

Please sign in to comment.