Skip to content

Commit

Permalink
chore: bump sqlparser from 0.44.0 to 0.45.0 (#4408)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Roos <m@maxroos.com>
  • Loading branch information
dependabot[bot] and max-sixty committed Apr 22, 2024
1 parent d1fe7c9 commit 5b4ae6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion prqlc/prqlc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ serde = {workspace = true}
serde_json = "1.0.116"
serde_yaml = {version = "0.9.34"}
sqlformat = "0.2.3"
sqlparser = {version = "0.44.0", features = ["serde"]}
sqlparser = {version = "0.45.0", features = ["serde"]}
strum = {version = "0.26.2", features = ["std", "derive"]}
strum_macros = "0.26.2"

Expand Down
3 changes: 2 additions & 1 deletion prqlc/prqlc/src/sql/gen_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ pub(super) fn translate_literal(l: Literal, ctx: &Context) -> Result<sql_ast::Ex
let sql_parser_datetime = match vau.unit.as_str() {
"years" => DateTimeField::Year,
"months" => DateTimeField::Month,
"weeks" => DateTimeField::Week,
"weeks" => DateTimeField::Week(None),
"days" => DateTimeField::Day,
"hours" => DateTimeField::Hour,
"minutes" => DateTimeField::Minute,
Expand Down Expand Up @@ -675,6 +675,7 @@ fn translate_windowed(
);

let window = WindowSpec {
window_name: None,
partition_by: try_into_exprs(window.partition, ctx, span)?,
order_by: (window.sort)
.into_iter()
Expand Down

0 comments on commit 5b4ae6b

Please sign in to comment.