From 277fafa41fecb21fc84e7ab2599f9deee7f01b11 Mon Sep 17 00:00:00 2001 From: Devin D'Angelo Date: Tue, 5 Mar 2024 10:04:00 -0500 Subject: [PATCH] fix: compilation error in test (#24) --- sources/sql/src/producer.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sources/sql/src/producer.rs b/sources/sql/src/producer.rs index 5c9f365..0c4ef45 100644 --- a/sources/sql/src/producer.rs +++ b/sources/sql/src/producer.rs @@ -632,14 +632,10 @@ mod tests { ]; for (query, expected) in tests { - // let dialect = GenericDialect {}; - // let orig_ast = Parser::parse_sql(&dialect, query).unwrap(); - // println!("{}", orig_ast[0]); + let dialect: Arc = Arc::new(GenericDialect {}); let plan = ctx.sql(query).await.unwrap().into_unoptimized_plan(); - // println!("{:?}", plan); - let ast = query_to_sql(&plan); - // println!("{:?}", ast); + let ast = query_to_sql(&plan, dialect); assert!(ast.is_ok()); let actual = format!("{}", ast.unwrap());