Skip to content

Consuming null message value should be consistent with producing #67

@vmaurin

Description

@vmaurin

In reference to issue #24 , while consuming null value message from Kafka, the output json should contains

"value": null

currently it is outputing

"value": ""

It could be convenient for doing a data backup or a data transfer between topics. A current workaround is to use jq tool to replace the empty string by null, but it only works if the topic is not supposed to contain empty string
Here the jq

jq -c '{partition:.partition,key:.key,value:(if (.value|length) > 0 then .value else null end)}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions