diff --git a/Cargo.lock b/Cargo.lock index 742b6bb29d92..a0de528ffccb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3729,9 +3729,9 @@ dependencies = [ [[package]] name = "sqlparser" -version = "0.44.0" +version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaf9c7ff146298ffda83a200f8d5084f08dcee1edfc135fcc1d646a45d50ffd6" +checksum = "f7bbffee862a796d67959a89859d6b1046bb5016d63e23835ad0da182777bbe0" dependencies = [ "log", "serde", diff --git a/prqlc/prqlc/Cargo.toml b/prqlc/prqlc/Cargo.toml index 9e196bc32e30..a513b5d916e2 100644 --- a/prqlc/prqlc/Cargo.toml +++ b/prqlc/prqlc/Cargo.toml @@ -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" diff --git a/prqlc/prqlc/src/sql/gen_expr.rs b/prqlc/prqlc/src/sql/gen_expr.rs index c5245ba98386..3698852f82cc 100644 --- a/prqlc/prqlc/src/sql/gen_expr.rs +++ b/prqlc/prqlc/src/sql/gen_expr.rs @@ -372,7 +372,7 @@ pub(super) fn translate_literal(l: Literal, ctx: &Context) -> Result DateTimeField::Year, "months" => DateTimeField::Month, - "weeks" => DateTimeField::Week, + "weeks" => DateTimeField::Week(None), "days" => DateTimeField::Day, "hours" => DateTimeField::Hour, "minutes" => DateTimeField::Minute, @@ -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()