Skip to content

Commit

Permalink
chore: Update to latest sqlparser
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored and ion-elgreco committed Dec 28, 2024
1 parent 329e6ed commit 6a5694c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions crates/sql/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 6a5694c

Please sign in to comment.