Skip to content

Commit

Permalink
fix: compilation error in test (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinjdangelo authored Mar 5, 2024
1 parent cc69b79 commit 277fafa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sources/sql/src/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn Dialect> = 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());
Expand Down

0 comments on commit 277fafa

Please sign in to comment.