-
Notifications
You must be signed in to change notification settings - Fork 613
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
Tracking(sink datatype mapping): sink type mismatch for jdbc and Debezium #9604
Comments
I think you mean the JSON payload of Jdbc sink, after #9957 JDBC sink can support Date.
#9957 added a flag to control how Sink converts the risingwave/src/connector/src/sink/mod.rs Lines 340 to 342 in 487c4c6
But I think we can use the string representation to unify the implementation of Kafka sink and JDBC sink (JSON payload). IMO, we don't need to stick to the data type mapping of the debezium‘s Postgres connector. Making the output JSON format consistent with Debzium JSON is enough. cc @neverchanje |
from my perspective, I accept any data format, as long as it can be ingested by the majority of downstream CDC tools. At this moment, I think sticking to debezium doc is the safest way. |
This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned. |
The remaining work is tracked in #9603. I will close this issue for now. Feel free to reopen if needed. |
When doing sinking, RisingWave type may need to be mapped to different types based on type of sink(Debezium, jdbc, etc.) and target DBMS (MySQL, PostgreSQL, etc.). Below is a list of things that need to be done.
Date
, Debezium maps it toint32
, but jdbc requires a string.Timestamp
, Debezium maps it toint64
, but jdbc requires a string. Related issue: Bug(sink): create tidb sink panic #9376The text was updated successfully, but these errors were encountered: