troubleshooting
How to send JSONB data to Kafka with nested JSON payload in SQL sink?
I'm building a sink in SQL to send JSONB data to Kafka, but the payload field in Kafka is showing up as a string instead of nested JSON. How can I ensure that the payload field in Kafka contains nested JSON data instead of a string?
Ne
Neil
Asked on Mar 26, 2024
- The current setup is casting the
payload_string
as JSONB, but the nested JSON withinpayload_string
is being treated as a string when sent to Kafka. - One workaround is to include the
name
anddate
fields within thepayload_string
to form a new payload with nested JSON. - Due to limitations, RisingWave currently does not support sending nested JSON as part of the payload directly to Kafka.
- Check the RisingWave GitHub issue #11699 for any updates or discussions regarding this limitation.
Mar 27, 2024Edited by