vinishjail97 opened a new pull request, #12860:
URL: https://github.com/apache/hudi/pull/12860
### Change Logs
When clustering plan has log files which delete all records in the base
file, the clustering used to fail before, now the validation has been removed.
20250130014738074.replacecommit
```
{
"partitionToWriteStats" : { },
"compacted" : false,
"extraMetadata" : {
"schema" : "{\"type\": \"record\",\"name\": \"triprec\",\"fields\": [
{\"name\": \"timestamp\",\"type\": \"long\"},{\"name\": \"_row_key\", \"type\":
\"string\"},{\"name\": \"partition_path\", \"type\": [\"null\", \"string\"],
\"default\": null },{\"name\": \"trip_type\", \"type\": {\"type\": \"enum\",
\"name\": \"TripType\", \"symbols\": [\"UNKNOWN\", \"UBERX\", \"BLACK\"],
\"default\": \"UNKNOWN\"}},{\"name\": \"rider\", \"type\":
\"string\"},{\"name\": \"driver\", \"type\": \"string\"},{\"name\":
\"begin_lat\", \"type\": \"double\"},{\"name\": \"begin_lon\", \"type\":
\"double\"},{\"name\": \"end_lat\", \"type\": \"double\"},{\"name\":
\"end_lon\", \"type\": \"double\"},{\"name\": \"distance_in_meters\", \"type\":
\"int\"},{\"name\": \"seconds_since_epoch\", \"type\": \"long\"},{\"name\":
\"weight\", \"type\": \"float\"},{\"name\": \"nation\", \"type\":
\"bytes\"},{\"name\":\"current_date\",\"type\": {\"type\": \"int\",
\"logicalType\": \"date\"}},{\"name\":\"current_ts\",\
"type\": {\"type\":
\"long\"}},{\"name\":\"height\",\"type\":{\"type\":\"fixed\",\"name\":\"abc\",\"size\":5,\"logicalType\":\"decimal\",\"precision\":10,\"scale\":6}},{\"name\":
\"city_to_state\", \"type\": {\"type\": \"map\", \"values\":
\"string\"}},{\"name\": \"fare\",\"type\": {\"type\":\"record\",
\"name\":\"fare\",\"fields\": [{\"name\": \"amount\",\"type\":
\"double\"},{\"name\": \"currency\", \"type\": \"string\"}]}},{\"name\":
\"tip_history\", \"default\": [], \"type\": {\"type\": \"array\", \"default\":
[], \"items\": {\"type\": \"record\", \"default\": null, \"name\":
\"tip_history\", \"fields\": [{\"name\": \"amount\", \"type\": \"double\"},
{\"name\": \"currency\", \"type\": \"string\"}]}}},{\"name\":
\"_hoodie_is_deleted\", \"type\": \"boolean\", \"default\": false} ]}"
},
"operationType" : "CLUSTER",
"partitionToReplaceFileIds" : {
"2016/03/15" : [ "5b0a9bf1-e01f-4b1f-b342-d964815fcf39-0" ],
"2015/03/16" : [ "2f88686e-a2b9-40cb-bcad-0c89303432eb-0" ],
"2015/03/17" : [ "fdad3d54-92ff-43a3-b6d6-f51dd8669229-0" ]
}
}
```
### Impact
Avoids failures when clustering is scheduled after user deletes all records
in a partition (using SQL for eg:)
### Risk level (write none, low medium or high below)
Low
### Documentation Update
None.
### Contributor's checklist
- [x] Read through [contributor's
guide](https://hudi.apache.org/contribute/how-to-contribute)
- [x] Change Logs and Impact were stated clearly
- [x] Adequate tests were added if applicable
- [x] 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]