You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "hudi-bot (via GitHub)" <gi...@apache.org> on 2025/11/30 05:05:34 UTC
[I] support multiple updateActions in Merge Into [hudi]
hudi-bot opened a new issue, #15269:
URL: https://github.com/apache/hudi/issues/15269
related issue [https://github.com/apache/hudi/issues/6037]
for now, there are restrictions with respect to this. since expressionPayload can not support multiple 'PAYLOAD_UPDATE_CONDITION_AND_ASSIGNMENTS' in properties
## JIRA info
- Link: https://issues.apache.org/jira/browse/HUDI-4361
- Type: Improvement
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] support multiple updateActions in Merge Into [hudi]
Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan closed issue #15269: support multiple updateActions in Merge Into
URL: https://github.com/apache/hudi/issues/15269
--
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
Re: [I] support multiple updateActions in Merge Into [hudi]
Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan commented on issue #15269:
URL: https://github.com/apache/hudi/issues/15269#issuecomment-4795344463
This appears to be resolved on current `master`. The encoded `hoodie.payload.update.condition.assignments` property now carries a *sequence* of `(condition, assignments)` pairs, and `ExpressionPayload.processMatchedRecord` iterates through all of them, picking the first whose condition matches.
References in current code:
- `MergeIntoHoodieTableCommand.scala` serializes **all** matched `UpdateAction`s: `updatingActions.map(a => (a.condition, a.assignments))` is passed to `serializeConditionalAssignments` (which already accepts a `Seq`).
- `ExpressionPayload.scala` evaluates them with `for ((conditionEvaluator, assignmentEvaluator) <- updateConditionAndAssignments if resultRecordOpt == null)`.
- Only `DeleteAction`s remain capped at one (`checkDeletingActions`); there is no `UpdateAction` count restriction.
- A test with two `WHEN MATCHED AND ...` update clauses exists at `TestMergeIntoTable.scala` (search for `source.data > target.data` / `source.data = 5`).
The restructuring landed in commit `812950bc9ea` ([HUDI-4690][HUDI-4503] Cleaning up Hudi custom Spark `Rule`s, #7871). If you have a query that still hits the original limitation, could you share the SQL + Hudi/Spark versions? Otherwise this can likely be closed.
--
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