Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ regex = "1.12"
rstest = "0.26.1"
serde_json = "1"
sha2 = "^0.11.0"
sqlparser = { git = "https://github.com/Embucket/datafusion-sqlparser-rs.git", rev = "65d8fceedc4ebd0933857910a3c56b2e8be6369f", default-features = false, features = [
sqlparser = { git = "https://github.com/Embucket/datafusion-sqlparser-rs.git", rev = "ff0378d5b2205e839360ab473efe9bcfa520f65f", default-features = false, features = [
"std",
"visitor",
] }
Expand Down
11 changes: 9 additions & 2 deletions datafusion/sql/src/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2723,8 +2723,10 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
"MERGE UPDATE DELETE WHERE predicates are not supported"
);
}
let assignments = update_expr
.assignments
let ast::MergeUpdateKind::Set(assignments) = update_expr.kind else {
return not_impl_err!("MERGE UPDATE ALL BY NAME is not supported");
};
let assignments = assignments
.into_iter()
.map(|assign| {
let col_name = match &assign.target {
Expand Down Expand Up @@ -2802,6 +2804,11 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
ast::MergeInsertKind::Row => {
return not_impl_err!("MERGE INSERT ROW is not supported");
}
ast::MergeInsertKind::AllByName => {
return not_impl_err!(
"MERGE INSERT ALL BY NAME is not supported"
);
}
};

MergeIntoAction::Insert { columns, values }
Expand Down
Loading