You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yihua (via GitHub)" <gi...@apache.org> on 2025/01/26 19:32:42 UTC
[PR] [HUDI-8851] Fix delete record generation in Prepped DELETE operation in Spark [hudi]
yihua opened a new pull request, #12713:
URL: https://github.com/apache/hudi/pull/12713
### Change Logs
In the prepped DELETE operation in Spark, NPE was thrown from the `HoodieAppendHandle` for ecord merge mode of `EVENT_TIME_ORDERING` on MOR table (see stacktrace below).
The issue is that `HoodieEmptyRecord` should be generated for deletes instead of `HoodieSparkRecord` for `SPARK` record type on the write path.
New tests are added to guard DELETE SQL with different record merge modes and table types.
```
Caused by: java.lang.NullPointerException
at org.apache.spark.sql.HoodieUnsafeRowUtils$.getNestedInternalRowValue(HoodieUnsafeRowUtils.scala:69)
at org.apache.spark.sql.HoodieUnsafeRowUtils.getNestedInternalRowValue(HoodieUnsafeRowUtils.scala)
at org.apache.hudi.common.model.HoodieSparkRecord.getOrderingValue(HoodieSparkRecord.java:322)
at org.apache.hudi.io.HoodieAppendHandle.writeToBuffer(HoodieAppendHandle.java:608)
at org.apache.hudi.io.HoodieAppendHandle.doAppend(HoodieAppendHandle.java:465)
at org.apache.hudi.table.action.deltacommit.BaseSparkDeltaCommitActionExecutor.handleUpdate(BaseSparkDeltaCommitActionExecutor.java:83)
at org.apache.hudi.table.action.commit.BaseSparkCommitActionExecutor.handleUpsertPartition(BaseSparkCommitActionExecutor.java:312)
```
### Impact
Bug fix
### Risk level
none
### Documentation Update
N/A
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
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: [PR] [HUDI-8851] Fix delete record generation in Prepped DELETE operation in Spark [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #12713:
URL: https://github.com/apache/hudi/pull/12713#issuecomment-2614562514
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3b245245840f53b1bb6d5aa53765d608bd708450 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: [PR] [HUDI-8851] Fix delete record generation in Prepped DELETE operation in Spark [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #12713:
URL: https://github.com/apache/hudi/pull/12713#issuecomment-2614563040
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140",
"triggerID" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3b245245840f53b1bb6d5aa53765d608bd708450 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: [PR] [HUDI-8851] Fix delete record generation in Prepped DELETE operation in Spark [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #12713:
URL: https://github.com/apache/hudi/pull/12713#issuecomment-2614605985
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140",
"triggerID" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"triggerType" : "PUSH"
}, {
"hash" : "2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3142",
"triggerID" : "2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3142)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: [PR] [HUDI-8851] Fix delete record generation in Prepped DELETE operation in Spark [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #12713:
URL: https://github.com/apache/hudi/pull/12713#issuecomment-2614582245
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140",
"triggerID" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"triggerType" : "PUSH"
}, {
"hash" : "2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3142",
"triggerID" : "2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3b245245840f53b1bb6d5aa53765d608bd708450 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140)
* 2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3142)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: [PR] [HUDI-8851] Fix delete record generation in Prepped DELETE operation in Spark [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #12713:
URL: https://github.com/apache/hudi/pull/12713#issuecomment-2614568701
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140",
"triggerID" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"triggerType" : "PUSH"
}, {
"hash" : "2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3b245245840f53b1bb6d5aa53765d608bd708450 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140)
* 2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: [PR] [HUDI-8851] Fix delete record generation in Prepped DELETE operation in Spark [hudi]
Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan merged PR #12713:
URL: https://github.com/apache/hudi/pull/12713
--
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: [PR] [HUDI-8851] Fix delete record generation in Prepped DELETE operation in Spark [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #12713:
URL: https://github.com/apache/hudi/pull/12713#issuecomment-2614568284
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140",
"triggerID" : "3b245245840f53b1bb6d5aa53765d608bd708450",
"triggerType" : "PUSH"
}, {
"hash" : "2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3b245245840f53b1bb6d5aa53765d608bd708450 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=3140)
* 2c7415fb6aa53a8bc46b01c10e9fd482f7d48dd9 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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