-
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
Support rw_int256
type in Postgres CDC source
#15977
Comments
rw_int256
type in Postgres CDCrw_int256
type in Postgres CDC source
what would be the solution?
|
Thanks @stdrc This issue was initially discussed on Slack: https://risingwave-community.slack.com/archives/C03BW71523T/p1711419543170449 It'll be even better if it can be configurable to cast numeric fields into int256/uin256(if you have it in the future)/double/varchar. |
@lmatz I vote for 2, which requires less storage |
Agree. We may also support |
And I haven't tested yet, can you sink rw_int256 fields into postgres numeric fields? |
Hi @bestmike007. According to our discussion today, I've created a hotfix for your case. The code is in branch wkx/hotfix-cdc-source-int256, which is based on the most recently released v1.8. You can get the image with Here are some notes worth mentioning:
Please let us know, if there's any further problem meet. The issue should be open until we find a good general solution and merged it into main branch. |
Additional note: special values |
Is your feature request related to a problem? Please describe.
We need to support convert Postgres
numeric
which actually stores an int256 value to ourrw_int256
. Current implementation only allowdecimal
type throughrust_decimal
crate, and the accuracy is not enough for some user cases.Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: