Skip to content

Commit d2d506a

Browse files
chore(deps): update sqlparser requirement from 0.35 to 0.36.1 (#7051)
* chore(deps): update sqlparser requirement from 0.35 to 0.36 Updates the requirements on [sqlparser](https://github.com/sqlparser-rs/sqlparser-rs) to permit the latest version. - [Changelog](https://github.com/sqlparser-rs/sqlparser-rs/blob/main/CHANGELOG.md) - [Commits](apache/datafusion-sqlparser-rs@v0.35.0...v0.35.0) --- updated-dependencies: - dependency-name: sqlparser dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Update for new API * Update sqlparser to 0.36.1 * Update datafusion-cli Cargo.lock * Update test output * fmt --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 9445aa0 commit d2d506a

File tree

4 files changed

+48
-40
lines changed

4 files changed

+48
-40
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ arrow-buffer = { version = "43.0.0", default-features = false }
3838
arrow-flight = { version = "43.0.0", features = ["flight-sql-experimental"] }
3939
arrow-schema = { version = "43.0.0", default-features = false }
4040
parquet = { version = "43.0.0", features = ["arrow", "async", "object_store"] }
41-
sqlparser = { version = "0.35", features = ["visitor"] }
41+
sqlparser = { version = "0.36.1", features = ["visitor"] }
4242

4343
[profile.release]
4444
codegen-units = 1

datafusion-cli/Cargo.lock

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/core/src/execution/context.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,13 +2175,11 @@ mod tests {
21752175
async fn create_variable_err() -> Result<()> {
21762176
let ctx = SessionContext::new();
21772177

2178-
let err = plan_and_collect(&ctx, "SElECT @= X#=?!~ 5")
2179-
.await
2180-
.unwrap_err();
2178+
let err = plan_and_collect(&ctx, "SElECT @= X3").await.unwrap_err();
21812179

21822180
assert_eq!(
21832181
err.to_string(),
2184-
"Error during planning: variable [\"@\"] has no type information"
2182+
"Error during planning: variable [\"@=\"] has no type information"
21852183
);
21862184
Ok(())
21872185
}

datafusion/sql/src/set_expr.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
3838
let all = match set_quantifier {
3939
SetQuantifier::All => true,
4040
SetQuantifier::Distinct | SetQuantifier::None => false,
41+
SetQuantifier::ByName => {
42+
return Err(DataFusionError::NotImplemented(
43+
"UNION BY NAME not implemented".to_string(),
44+
));
45+
}
46+
SetQuantifier::AllByName => {
47+
return Err(DataFusionError::NotImplemented(
48+
"UNION ALL BY NAME not implemented".to_string(),
49+
))
50+
}
4151
};
4252

4353
let left_plan = self.set_expr_to_plan(*left, planner_context)?;

0 commit comments

Comments
 (0)