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

Fix regression in kafka producer that panicked on key serialization #574

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

mwylde
Copy link
Member

@mwylde mwylde commented Mar 30, 2024

Fixes a regression in kafka serialization that causes run-time panics. The deserializer can only deserialize value schemas (as it has logic to project out the non-timestamp columns). In the Kafka producer, we had logic to also serialize the keys if they were present. That was previously ignored, because there never ends up being a key in the graph produced by SQL. However, when we changed the key representation to be an Option<Vec<usize>>, that is now Some but with an empty schema, causing the key serialization code to run but panic due to not having any columns.

@mwylde mwylde merged commit f8fd69f into master Apr 1, 2024
6 checks passed
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