-
Notifications
You must be signed in to change notification settings - Fork 590
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
Allow kafka sink to encode as PLAIN AVRO #16912
Comments
It is doable. Just to confirm:
|
Thank you for your quick reply ! I might have misunderstood a bit the To answer your questions:
|
Yes, it is the tricky part. If the Kafka's key is aligned with the downstream's pk, it is upsert format in RisingWave. If the Kafka's key is not the downstream's pk, just for doing partition, it is append-only format with a specified key in RisingWave. For Kafka itself, the two methods look the same. |
Use of schema registry is mandatory for avro unless the schema never evolves. Unlike json or protobuf, to decode an avro message encoded with one version of schema into another compatible version, the definitions (avsc) of both versions must be available during decoding.
It is not mandatory for |
It looks to me that the compaction is a topic property / kafka responsability so RW should not really care if the downstream system is upserting or appending. So yes in my opinion for kafka I think my initial issue has been fixed by #17216, I am missing something ? |
Yes.
Yes it is kafka's responsibility and outside RisingWave, but the RisingWave options are supposed to follow its conventions. To avoid confusion let me focus on RisingWave's behavior difference:
|
Thank you for the details @xiangjinwu ! I understand the difference now, maybe they could be highlighted in the documentation ? |
Yes I am working on a document refactor of the relevant pages: |
Is your feature request related to a problem? Please describe.
I would like to export the results of a materialized view into kafka with the avro format but it looks like it is not possible. Is it much different than with PLAIN JSON ?
Describe the solution you'd like
Be able to do:
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: