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

refactor: improve error message when header types differ #226

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

jeqo
Copy link
Contributor

@jeqo jeqo commented Feb 26, 2024

The connector is expecting record headers to be of the same type. This type is used to define the headers map type for the output schema.

The current workaround is to force the same type via converters, e.g. using header converter: StringConverter instead of SimpleHeaderConverter that tries to infer the type from the value.

There's still another scenario that may cause issues where first record does not have headers but other records may have. This requires further investigation. See Aiven-Open/gcs-connector-for-apache-kafka#347 (comment) and #227

@jeqo jeqo requested review from a team as code owners February 26, 2024 16:38
@jeqo jeqo force-pushed the jeqo/test-header-diff-type branch from f0b94ea to 91debd1 Compare February 26, 2024 16:46
Copy link
Contributor

@C0urante C0urante left a comment

Choose a reason for hiding this comment

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

Nicely done!

@tvainika tvainika merged commit 6289287 into main Feb 27, 2024
8 checks passed
@tvainika tvainika deleted the jeqo/test-header-diff-type branch February 27, 2024 07:16
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.

3 participants