Repository navigation
fix: use valid Iceberg operation for rewrite snapshots - #31029
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 9086070b61eb3a1f561245c63313ae2b472e1eb9
Assessment: approve
Reviewed the complete 10-file delta and affected callers. Mapping rewrite operations to replace at the existing metadata writers is a coherent fix consistent with the Iceberg specification. Internal dispatch, idempotency, verification and cleanup remain intact. No actionable defects or added runtime costs were found.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reconciled exact-head CI job 120984021910: its race-enabled light test stage explicitly selected maintenance, catalog, API and SQL Iceberg packages and completed with status 0. Native prerequisites were verified before execution.
-
Verified retained CI artifact 12559380486 against the SHA256 recorded in the job log. Retrieval commands, clean source fingerprints and exit receipts are retained under attempt-1/checks.
-
Audited regression assertions for native materialization, outgoing snapshot summaries, catalog planners and commit recovery. Traced both native and catalog paths through REST serialization.
-
Receipt-backed evidence audit passed: exact HEAD, unchanged checkout, supplied patch reconciliation and git diff --check. Logs and detailed analysis are retained in /home/xupeng/.local/state/mo-bot/jobs/28017a89c42bb5e463203bea/attempt-1, including evidence-audit.log and review-notes.json.
Limitations:
-
No live pyiceberg round trip was executed; Iceberg E2E Local was skipped. Boundary coverage and exact-head CI suffice for these summary-value substitutions, so native tests were not repeated locally.
-
The frozen evidence references issue #30534 without its body; review covered the behavioral contract documented in the PR.
Merge Queue Status
This pull request spent 4 hours 5 minutes 43 seconds in the queue, with no time running CI. ReasonThe merge conditions cannot be satisfied due to failing checks
Failing checks:
HintYou may have to fix your CI before adding the pull request to the queue again. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
…1e4ddf8454d5af2db0ad0f41025be8c4f8aa183
…1e4ddf8454d5af2db0ad0f41025be8c4f8aa183
What type of PR is this?
Which issue(s) this PR fixes:
#30534
What this PR does / why we need it:
Iceberg rewrite maintenance commits were serializing MatrixOne's internal procedure names (
rewrite_manifestsandrewrite_data_files) as the snapshot summaryoperation. Those values are invalid under the Iceberg table metadata specification, so strict clients such as pyiceberg could no longer load the table after a rewrite.This changes all five snapshot-summary write boundaries for manifest and data-file rewrites to use the spec-valid
replaceoperation while preserving the internal operation identifiers used for dispatch, verification, and result reporting. Existing summary metadata and commit behavior remain unchanged.Validation:
gofmtandgit diff --checkpass.GOWORK=off go list -mod=readonly ./pkg/iceberg/maintenancepasses.go testandgo vetwere attempted but could not compile the package because the existing CGo environment cannot resolveC.mo_sorted64_build_fixedandC.mo_sorted64_freeinpkg/common/docfilter/cmembership.go.