dtle
dtle copied to clipboard
kafka full replication job column type bool: the value should be true or false
Description
kafka full replication job column type bool: the value should be true or false
Steps to reproduce the issue
- create db and table
create database action_db;
use action_db
create table bool_columns(id int(11) not null primary key,c_bool bool DEFAULT 0) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- create kafka job
{
"Name": "column_types_default_full_bool_columns",
"Datacenters": [
"dc1"
],
"Tasks": [
{
"Type": "Src",
"Driver": "MySQL",
"NodeId": "da1c766d-b945-9ad4-a434-458d637f4420",
"Config": {
"ConnectionConfig": {
"Host": "172.100.9.2",
"Port": 3306,
"User": "test_src",
"Password": "test_src"
},
"ReplicateDoDb": [
{
"TableSchema": "action_db",
"Tables": [
{
"TableName": "bool_columns"
}
]
}
]
}
},
{
"Type": "Dest",
"Driver": "Kafka",
"NodeId": "8db2080b-2753-9ce6-a264-45d3383ef35a",
"Config": {
"Topic": "dtle",
"Brokers": [
"172.100.9.21:9092"
],
"Converter": "json"
}
}
]
}
- insert some data
use action_db
insert into bool_columns values (0,-128);
insert into bool_columns values (1,127);
insert into bool_columns values (2,0);
insert into bool_columns values (3,50);
insert into bool_columns values (4,-50);
insert into bool_columns values (5,NULL);
insert into bool_columns values (6,default);
- get message from kafka
/kafka/bin/kafka-console-consumer.sh --bootstrap-server 172.100.9.21:9092 --from-beginning --property print.key=true --topic dtle.action_db.bool_columns
Describe the results you received
Describe the results you expected
https://dev.mysql.com/doc/refman/5.7/en/numeric-type-syntax.html
Output of ./dtle version
:**
NOMAD_VERSION=<0.11.1>
DTLE_VERSION=<9.9.9.9-master-f8a8a93>
Additional information
(e.g. issue happens only occasionally)