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: correctly produce Kafka JSON nulls for int fields #5702

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

devinrsmith
Copy link
Member

This fixes what was likely a copy-paste error, where the Kafka JSON producing logic checked for NULL_SHORT for int fields. None of the other field types were mishandled. It's worth noting that the json producer will omit null fields by default, and to explicitly output a JSON null ({..., "myIntField": null, ...}), the boolean outputNulls must be set to true (exposed as output_nulls in python).

Fixes #5701

This fixes what was likely a copy-paste error, where the Kafka JSON producing logic checked for NULL_SHORT for int fields. None of the other field types were mishandled. It's worth noting that the json producer will omit null fields by default, and to explicitly output a JSON null (`{..., "myIntField": null, ...}`), the `boolean outputNulls` must be set to `true` (exposed as `output_nulls` in python).

Fixes deephaven#5701
@devinrsmith devinrsmith added bug Something isn't working kafka NoDocumentationNeeded json ReleaseNotesNeeded Release notes are needed labels Jul 1, 2024
@devinrsmith devinrsmith added this to the June 2024 milestone Jul 1, 2024
@devinrsmith devinrsmith self-assigned this Jul 1, 2024
@devinrsmith devinrsmith merged commit 1e56a5b into deephaven:main Jul 1, 2024
29 checks passed
@devinrsmith devinrsmith deleted the json-produce-nulls branch July 1, 2024 16:51
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kafka JSON Spec Does Propagates DH Nulls Instead of JSON Null
3 participants