diff --git a/Cargo.lock b/Cargo.lock index da185a961d8..a6b0d6f9718 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5286,9 +5286,9 @@ checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a" [[package]] name = "sqlparser" -version = "0.59.0" +version = "0.60.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4591acadbcf52f0af60eafbb2c003232b2b4cd8de5f0e9437cb8b1b59046cc0f" +checksum = "505aa16b045c4c1375bf5f125cce3813d0176325bfe9ffc4a903f423de7774ff" dependencies = [ "log", "recursive", @@ -5297,9 +5297,9 @@ dependencies = [ [[package]] name = "sqlparser_derive" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da5fc6819faabb412da764b99d3b713bb55083c11e7e0c00144d386cd6a1939c" +checksum = "028e551d5e270b31b9f3ea271778d9d827148d4287a5d96167b6bb9787f5cc38" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 7bcaebf61d3..d7cae143e3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -84,7 +84,7 @@ serde_json = { version = "1.0", features = ["arbitrary_precision"] } serde_regex = "1.1.0" serde_yaml = "0.9.21" slog = { version = "2.8.2", features = ["release_max_level_trace", "max_level_trace"] } -sqlparser = { version = "0.59.0", features = ["visitor"] } +sqlparser = { version = "0.60.0", features = ["visitor"] } strum = { version = "0.26", features = ["derive"] } syn = { version = "2.0.106", features = ["full"] } test-store = { path = "./store/test-store" } diff --git a/graph/src/schema/input/sqlexpr.rs b/graph/src/schema/input/sqlexpr.rs index 163b77a142a..bc5705810bb 100644 --- a/graph/src/schema/input/sqlexpr.rs +++ b/graph/src/schema/input/sqlexpr.rs @@ -346,7 +346,7 @@ impl<'a> VisitExpr<'a> { use p::UnaryOperator::*; match op { Plus | Minus | Not => Ok(()), - PGBitwiseNot | PGSquareRoot | PGCubeRoot | PGPostfixFactorial | PGPrefixFactorial + BitwiseNot | PGSquareRoot | PGCubeRoot | PGPostfixFactorial | PGPrefixFactorial | PGAbs | BangNot | Hash | AtDashAt | DoubleAt | QuestionDash | QuestionPipe => { self.not_supported(format!("unary operator {op} is not supported")) } diff --git a/store/postgres/src/sql/validation.rs b/store/postgres/src/sql/validation.rs index e33629e2d15..ac8421f9648 100644 --- a/store/postgres/src/sql/validation.rs +++ b/store/postgres/src/sql/validation.rs @@ -382,6 +382,7 @@ impl VisitorMut for Validator<'_> { Some(TableAlias { name: Ident::new(table.name.as_str()), columns: vec![], + explicit: true, }) }); *table_factor = TableFactor::Derived {