Skip to content

SQL-3167: wasm process collection#150

Open
nicholascioli wants to merge 7 commits into
mongodb:mainfrom
nicholascioli:wasm-process-collection
Open

SQL-3167: wasm process collection#150
nicholascioli wants to merge 7 commits into
mongodb:mainfrom
nicholascioli:wasm-process-collection

Conversation

@nicholascioli
Copy link
Copy Markdown
Collaborator

This PR adds a utility method for deriving a collection's schema linearly over its partitions. This should allow for single-threaded consumers to easily derive a schema for a collection without worrying about how to best split up the partitions or any other internal details.

If a consumer wishes to be more performant in how it processes the collection, it can always use the lower-level derive_schema_for_partition to do so.

Also, this PR is dependent on #148, so please review only the commits starting at "SQL-3167" and beyond. This PR will be rebased once the other PR is merged.

@nicholascioli nicholascioli self-assigned this May 22, 2026
@nicholascioli nicholascioli force-pushed the wasm-process-collection branch from 4cd6539 to c3df659 Compare May 27, 2026 19:11
nicholascioli and others added 6 commits May 29, 2026 12:58
This commit adds a utility method for linearly deriving a schema for a collection by splitting it into partitions and processing them one at a time.
This commit adds an integration test for verifying that a node context can still derive schemas for a collection. Note that this requires running the following command in the `schema_manager_library` folder to generate the needed files.

```sh
wasm-pack build --release --no-default-features --features wasm
```
@nicholascioli nicholascioli force-pushed the wasm-process-collection branch from f4be03b to c7bb42b Compare May 29, 2026 16:58
@nicholascioli nicholascioli marked this pull request as ready for review May 29, 2026 17:00
@nicholascioli nicholascioli requested a review from a team as a code owner May 29, 2026 17:00
@nicholascioli
Copy link
Copy Markdown
Collaborator Author

The PR has been rebased and is ready for review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants