-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
0.8.3.Final
-
None
I think it's possible I may have run into a bug similar to DBZ-615.
If you create a table in MySQL with a column type of BOOLEAN it ends up as TinyInt(1). If you then start a MySQL connector pointed at that table it will register a schema with a type of "int" and "connect.type" of "int16" with the Schema Registry during the snapshot. If however, you then drop and then recreate that table with the same schema and insert some data the connector will register a new schema with type "boolean" in the Schema Registry.
When the mysql connector encounters this situation it should register either int16 or boolean every time. I think the issue is that the connector is able to rightly map "BOOLEAN" from the CREATE statement to a boolean in the Schema Registry, but is forced to treat the TinyInt(1) it sees during a snapshot as if it could hold more than 1 bit of data.
I think the easiest solution might be to map BOOLEAN values to Types.SMALLINT in the ddl parser, but I don't really like what that means for consumers.
- relates to
-
DBZ-1384 https://hub.docker.com/u/debezium not available
- Closed