Skip to content

feat(mongodb-structured-ingestion) DBI-1098: Expose BSON to JSON conversion in flow/pkg - #4808

Draft
pfcoperez wants to merge 2 commits into
mainfrom
DBI-1098/connectors/mongodb/structured-ingestion/schema-inference/sample-serialization
Draft

pfcoperez wants to merge 2 commits into
mainfrom
DBI-1098/connectors/mongodb/structured-ingestion/schema-inference/sample-serialization

Conversation

@pfcoperez

Copy link
Copy Markdown
Member

This PR moves the MongoDB connector BSON -> JSON translation logic from the connector code to flow/pkg.
This enables ClickPipes' Discovery MongoDB schema inference as the sample will be serialized using the same code as the event processing.

⚠️ Draft because it contains both the changes of #4802 and the proposed changes. Once the PR it depends on is merged it will be easier to review.

Depends on: #4802
Part of: https://linear.app/clickhouse/issue/DBI-1098

Expand the converter interface with QValueFromBsonValue, which dispatches on the
BSON type to per-type converters.

No pre-existing behaviour change.

NOTE: This is a split up from a feature branch (#4774) where all pieces are integrated.
…ersion in flow/pkg

This enables ClickPipes' Discovery MongoDB schema inference.

Part of: https://linear.app/clickhouse/issue/DBI-1098
@claude

claude Bot commented Sep 15, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@pfcoperez
pfcoperez marked this pull request as draft September 15, 2026 13:22

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant