Repository navigation
fix(mongodb): use relaxed extended JSON mapping - #27433
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? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep-reviewed exact head 1091ded14ab57c7c427163d956ea55114a67cb87 against base 853fb9bf9b1d0ea1aa09b3cc7443ad3828ffab4a.
The JSON path now delegates BSON-to-relaxed-Extended-JSON semantics to the MongoDB driver, unwraps the temporary document as json.RawMessage, and feeds the original number tokens directly into MatrixOne ByteJson without a float64 round trip. Native JSON values become ordinary JSON while Decimal128, non-finite doubles, dates, binary, ObjectID, and other BSON-only domains retain their Extended JSON wrappers. Missing/NULL handling and strict/try_null conversion behavior are unchanged.
I checked top-level scalars, nested documents/arrays, int64 minimum and maximum, negative zero, non-finite doubles, Decimal128, temporal and binary wrappers, malformed BSON, max-value/decoded-batch limits, and row rollback on conversion failure. Full tests passed for pkg/sql/mongodb and the standalone test/mongodb E2E runner, along with focused build and go vet; git diff --check is clean. I found no additional correctness, Q1 cleanup/ownership, Q2 wait, or Q3 growth blocker.
Merge Queue Status
This pull request spent 3 hours 3 minutes 22 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
aptend
left a comment
There was a problem hiding this comment.
Deep-reviewed exact head 1091ded14ab57c7c427163d956ea55114a67cb87. The temporary-document encoding correctly delegates BSON relaxed Extended JSON semantics to the pinned MongoDB driver, and RawMessage unwrapping avoids a float64 round trip before MatrixOne ByteJson parsing. I checked native JSON scalar/container mappings, BSON-only wrappers, pre-epoch dates, malformed raw values, exact int64 tokens across the IEEE-754 boundary and at both int64 limits, conversion rollback/budgets, and the E2E query/error paths. Package and standalone E2E tests, focused race repetitions, vet, and diff checks pass. No blocking issue found.
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27414 ## What this PR does / why we need it: fix(mongodb): use relaxed extended JSON mapping --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27414 ## What this PR does / why we need it: fix(mongodb): use relaxed extended JSON mapping --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27414 ## What this PR does / why we need it: fix(mongodb): use relaxed extended JSON mapping --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #27414
What this PR does / why we need it:
fix(mongodb): use relaxed extended JSON mapping