Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: add materialize-kafka to ser_policy #1881

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

williamhbaker
Copy link
Member

@williamhbaker williamhbaker commented Jan 17, 2025

Description:

Kafka has a default maximum message size of 1MiB.

This adds materialize-kafka to the list of connectors that use ser_policy, which should generally ensure that documents with individual extremely large string, array, or object fields don't exceed the message size limit for Kafka.

This simple heuristic may not always be 100% what users desire, but in general it seems better to have the connector at least sort-of-work rather than crash in a way that would require a more complicated fix (possibly a derivation) to best
support data exploration / PoC use cases.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

Kafka has a default maximum message size of 1MiB.

This adds `materialize-kafka` to the list of connectors that use `ser_policy`,
which should generally ensure that documents with individual extremely large
string, array, or object fields don't exceed the message size limit for Kafka.

This simple heuristic may not always be 100% what users desire, but in general
it seems better to have the connector at least sort-of-work rather than crash in
a way that would require a more complicated fix (possibly a derivation) to best
support data exploration / PoC use cases.
@williamhbaker williamhbaker requested a review from a team January 17, 2025 14:30
Copy link
Member

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

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

LGTM

@jgraettinger jgraettinger merged commit 79e05ac into master Jan 21, 2025
3 checks passed
@jgraettinger jgraettinger deleted the wb/kafka-serde branch January 21, 2025 16:28
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