JunRuiLee opened a new pull request, #7940:
URL: https://github.com/apache/paimon/pull/7940
### Purpose
Add metadata repair capability to pypaimon's filesystem catalog. The
repair operation verifies the consistency chain (LATEST → snapshot → manifest
list → manifest → data files) and can optionally fix a dangling LATEST file by
rewriting it to
the newest fully-valid snapshot.
Key behaviors:
- Branch-qualified identifiers (`db.table$branch_name`) repair the correct
branch
- `check_data_files=True` verifies data file existence using proper
partition path construction, respects custom `partition.default-name`, and
skips DELETE entries
- Fix mode only selects a snapshot whose entire manifest chain (and
optionally data files) passes validation
### Tests
21 unit tests in `pypaimon/tests/repair_test.py`
--
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]