-
Notifications
You must be signed in to change notification settings - Fork 287
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
Loss of 'float' type values precision in the Kafka sink using 'canal-json' protocol #8490
Labels
affects-4.0
affects-5.0
affects-5.1
affects-5.2
affects-5.3
affects-5.4
affects-6.0
affects-6.1
affects-6.2
affects-6.3
affects-6.4
affects-6.5
affects-6.6
area/ticdc
Issues or PRs related to TiCDC.
component/sink
Sink component.
kafka
severity/major
type/bug
The issue is confirmed as a bug.
Comments
andriy-buryy
added
area/ticdc
Issues or PRs related to TiCDC.
type/bug
The issue is confirmed as a bug.
labels
Mar 9, 2023
It might caused by the float rounding issue (lost precise, float64 to float32) , see https://go.dev/play/p/jwvumoA8aaF |
ticdc mounter decode float as float64 Lines 458 to 465 in 2abe021
|
This was referenced Mar 14, 2023
This was referenced Mar 15, 2023
ti-chi-bot
pushed a commit
that referenced
this issue
Mar 17, 2023
This was referenced Mar 17, 2023
ti-chi-bot
added a commit
that referenced
this issue
Mar 24, 2023
ti-chi-bot
added a commit
that referenced
this issue
Apr 4, 2023
ti-chi-bot
added a commit
that referenced
this issue
Apr 4, 2023
15 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-4.0
affects-5.0
affects-5.1
affects-5.2
affects-5.3
affects-5.4
affects-6.0
affects-6.1
affects-6.2
affects-6.3
affects-6.4
affects-6.5
affects-6.6
area/ticdc
Issues or PRs related to TiCDC.
component/sink
Sink component.
kafka
severity/major
type/bug
The issue is confirmed as a bug.
What did you do?
test_table
$ mysql -u root -h 127.0.0.1 -P 4000 test
INSERT
event message value in the Kafka topic:What did you expect to see?
The
price
field value in the Kafka message should be123.99
(the same as in the database).What did you see instead?
The
price
field value in the Kafka message is123.98999786376953
(not the same as in the database).Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):Upstream TiKV version (execute
tikv-server --version
):TiCDC version (execute
cdc version
):The text was updated successfully, but these errors were encountered: