Repository navigation
Fix Parquet LOAD with statistics - #32306
iamlinjunhong wants to merge 8 commits into
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: e3718d42aadf4cf48ca180ed2ef2de60ee09e5bd
Assessment: approve
The fix correctly handles compact boolean fields while preserving collection decoding and writer statistics. The local module matches the pinned dependency apart from the three-line fix; its documented maintenance cost is justified by the narrow behavior change.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Verified all 198 production files, retained upstream files, licenses, original fixtures and Docker module stages.
-
Nested Thrift and root Parquet tests passed. Baseline reproduced the footer error; candidate fixture checks verified complete values, controls and truncation rejection.
-
Reused frozen-head successful build, UT, SCA, coverage and active BVT statuses.
-
Receipts and logs reconciled in validation-evidence.json; final audit checks/1794212016599760110-2.json passed. Discussion assessment saved.
Limitations:
-
No fresh local SQL, native-consumer, performance or full Docker/GPU image runs.
-
Downstream Go main modules need their own replacement; automatic CreatedBy version discovery is reduced, as documented.
❌ Left the queue · checks failed1 h 49 min in the queue, with no time running CI. So far
The failure is in this pull request. It failed tested alone on top of Reason The merge conditions cannot be satisfied due to failing checks
To get back in the queue
Merge conditions not met when it left the queue
Requeue requested — the merge queue status continues in this comment ↓. 2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
fengttt
left a comment
There was a problem hiding this comment.
Seems to be the wrong way of fixing upstream bugs.
Shouldn't this be done like we fork parquet-go in its own repo, use our version of go in using go.mod. Try to push the fix upstream. Up to origin maintainer to accept/fix/merge or whatever. We maintain sync with upstream until this is fix in upstream.
|
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: f122c2232c8920cfd8b5060e83ca3ea6e4e4b351
Assessment: approve
The shared Thrift fix correctly distinguishes inline struct booleans from collection values and preserves writer behavior. The documented local module adds bounded maintenance cost. A separate fork is a reasonable alternative, but no mandatory policy or supported-consumer defect was established. The maintainer’s existing change request remains unresolved.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Preflight and the complete isolated nested Thrift suite passed. Logs and receipts are retained.
-
Removing only the guard makes the compact regression fail while binary still passes, confirming the test oracle.
-
Source audit passed: all 232 changed inputs match the prior reviewed head; checked 198 library production files, retained licenses, both issue fixtures and six Docker module stages.
-
Reused frozen current-head CI successes for build, UT, SCA, coverage and BVT. All seven discussion entries are assessed in discussion-assessment.json; execution receipts and logs are reconciled in validation-evidence.json.
Limitations:
-
Root tests did not compile locally: Go 1.26.6 is below required 1.27.1, and toolchain download timed out. Fresh upstream-module download also timed out.
-
Prior-review and raw CI logs were unavailable. No local service, native, benchmark, GPU or full Docker image run was claimed.
-
Downstream replacement and reduced CreatedBy version discovery are documented maintenance limits.
⏳ Waiting for queue conditionsEnters the queue as soon as one of these 7 queue rules has nothing left. Queue rule
Queue rule
Queue rule
4 other queue rulesQueue rule
Queue rule
Queue rule
Queue rule
Queue rule
|
|
Agreed, @fengttt — we should maintain the fix in a separate parquet-go fork, reference it via go.mod, and work with upstream instead of copying the library into MatrixOne. |
What type of PR is this?
Which issue(s) this PR fixes:
issue #32229
What this PR does / why we need it:
Valid Parquet files with statistics could fail LOAD because the compact Thrift decoder consumed an extra byte when skipping an unknown boolean field. Correct the field skip in a locally maintained copy of parquet-go v0.25.1, preserving the existing writer statistics behavior and making the replacement module available in Docker build stages. The affected files now load with their complete values; files without statistics remain supported.
Validation
e3718d42aadf4cf48ca180ed2ef2de60ee09e5bd):license-eye -c .licenserc.yml header checkpassed (7,413 valid, zero invalid);dep checkand missing-header rejection controls passed.GOWORK=off go test -mod=readonly -v -count=1 -timeout=120s ./encoding/thriftpassed in the nested module. The repair preserves upstream licenses and adds the MatrixOne header to its local regression; runtime behavior is unchanged. Full Linux SCA remains for CI.The local replace does not propagate to downstream Go main modules; consumers must map the dependency themselves. An existing upstream V1 nullable multi-page reader limitation remains outside this fix.