-
Notifications
You must be signed in to change notification settings - Fork 961
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
Postgres jdbc connector: Decimal Data-Type #280
Comments
I have the same question. |
@strengthening, @amit-c1x: have you tried the latest 4.1.1 build? It includes a change (see #396) that adds a new behavior for mapping numerics with non-zero scales, but it is disabled by default to avoid unexpected behavioral changes upon upgrade. To enable, the feature set |
@rhauch Hi, I'm the lastest version 4.1.1 and my db is mysql . I tried to set |
@strengthening sure, but can you provide more information to help replicate and diagnose? For example, what is the DDL for the table (or columns)? |
@rhauch Oh, thx for your continuous help.
then the consumser receive data like this:
the column I download the latest conflunent file the the jars like blew:
Is anything wrong with my config? Thx again~ |
@rhauch is there any function to resolve the issue?Thx |
@strengthening Did you solve this problem? I also encountered the same problem. |
@strengthening 你的这个问题解决了吗?这个使用了base64进行编码,怎么解码还没有好的方法。 |
@rhauch How to solve this problem? I also encountered the same problem with @strengthening |
Also having the same issue but with AWS Aurora MySql engine. Currently using the confluent 5.0.1 docker images in my testing env. DB: AWS Aurora Mysql engine 5.6.10a values appearing in topic, read using console consumer: connector config: |
@justin-tomlinson Yes, I don't know how to deal with confluent official website, but I tried it, no use. it is base64 encode。 you can do it by BigDecimal bigDecimal = new BigDecimal(new BigInteger(Base64.getDecoder().decode("Fg==")),2); |
@justin-tomlinson but it is not so good |
@strengthening @justin-tomlinson see #563 - because MySQL treats |
I'm closing this issue as it was originally opened for Postgres, and |
这么大的公司,连这个小问题都解决不了,好几年了还存在,真不敢想象 |
Hi,
I have configured jdbc connector on postgres database. One of the columns has DECIMAL(15,3) type. However, in kafka topic, I am seeing some string values.
Could someone please explain what is going on and how to rectify this?
Example of relevant fields:
The text was updated successfully, but these errors were encountered: