Skip to content

fix(mongodb): use relaxed extended JSON mapping - #27433

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
iamlinjunhong:m-27414
Aug 21, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
iamlinjunhong:m-27414

Conversation

@iamlinjunhong

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #27414

What this PR does / why we need it:

fix(mongodb): use relaxed extended JSON mapping

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mergify mergify Bot added the queued label Aug 21, 2026
@mergify

mergify Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-21 09:06 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-08-21 12:09 UTC · at 8f8eef512477b8273f7fab189fd903f55115f733

This pull request spent 3 hours 3 minutes 22 seconds in the queue, with no time running CI.

Reason

The pull request can't be updated

This pull request seems to come from a fork, and Mergify needs the author's permission to update its branch.
The author needs to enable "Allow edits from maintainers" on this pull request, or update the branch manually.

Hint

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

@aptend aptend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@XuPeng-SH
XuPeng-SH merged commit 0bcda3e into matrixorigin:main Aug 21, 2026
19 of 20 checks passed
@mergify mergify Bot added dequeued and removed queued labels Aug 21, 2026
@iamlinjunhong
iamlinjunhong deleted the m-27414 branch August 23, 2026 17:14
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## 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>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## 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>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## 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>

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants