You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/07/05 00:33:06 UTC
[GitHub] [hudi] KnightChess commented on issue #6037: [QUESTION] about the implementation of spark merge into
KnightChess commented on issue #6037:
URL: https://github.com/apache/hudi/issues/6037#issuecomment-1174476029
@fengjian428 No, just COW table.
In case one, it will throw AnalysisException `Cannot resolve target.age in ...., the input columns is: [id#x, name#y, age#z, dt#w]`.
In case two, I want use more than one updateAction may be like below
```sql
merge into delete_error_test target
using (select 'wlq_new3' as name, 1 as id, 29 as age, '20210101' as dt) source
on target.id = source.id
when matched and target.age = -1 then update set name = source.name, age = source.age
when matched and target.age <> -1 then update set name = source.name
when not matched then insert (id, age, name, dt)
values (source.id, source.age, source.name, '20210102')").explain(true)
```
And I just want to know why add the limit in these case, then I will coding for these scenes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org