From ae125bf66ffb9318e06b8d3768c05a53af167111 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Sat, 21 Dec 2024 14:06:12 -0500 Subject: [PATCH] chore: Update to latest sqlparser --- crates/core/Cargo.toml | 2 +- crates/sql/src/parser.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml index 0797b77b9a..965041bdd0 100644 --- a/crates/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -96,7 +96,7 @@ tracing = { workspace = true } rand = "0.8" z85 = "3.0.5" maplit = "1" -sqlparser = { version = "0.52.0" } +sqlparser = { version = "0.53.0" } [dev-dependencies] criterion = "0.5" diff --git a/crates/sql/src/parser.rs b/crates/sql/src/parser.rs index 19bf3f00b0..4844c7fb2c 100644 --- a/crates/sql/src/parser.rs +++ b/crates/sql/src/parser.rs @@ -224,9 +224,9 @@ impl<'a> DeltaParser<'a> { #[cfg(test)] mod tests { - use datafusion_sql::sqlparser::ast::Ident; - use super::*; + use datafusion_sql::sqlparser::ast::Ident; + use datafusion_sql::sqlparser::tokenizer::Span; fn expect_parse_ok(sql: &str, expected: Statement) -> Result<(), ParserError> { let statements = DeltaParser::parse_sql(sql)?; @@ -245,6 +245,7 @@ mod tests { table: ObjectName(vec![Ident { value: "data_table".to_string(), quote_style: None, + span: Span::empty(), }]), retention_hours: None, dry_run: false, @@ -255,6 +256,7 @@ mod tests { table: ObjectName(vec![Ident { value: "data_table".to_string(), quote_style: None, + span: Span::empty(), }]), retention_hours: Some(10), dry_run: false, @@ -265,6 +267,7 @@ mod tests { table: ObjectName(vec![Ident { value: "data_table".to_string(), quote_style: None, + span: Span::empty(), }]), retention_hours: Some(10), dry_run: true, @@ -275,6 +278,7 @@ mod tests { table: ObjectName(vec![Ident { value: "data_table".to_string(), quote_style: None, + span: Span::empty(), }]), retention_hours: None, dry_run: true,