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 #5796

Merged

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
Cherry-pick of #5702

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 self-assigned this Jul 18, 2024
@devinrsmith devinrsmith requested a review from rcaudy July 18, 2024 17:55
@devinrsmith devinrsmith merged commit 81ea905 into deephaven:rc/v0.35.x Jul 18, 2024
18 of 19 checks passed
@devinrsmith devinrsmith deleted the json-produce-nulls-from-5702 branch July 18, 2024 19:02
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant