-
Bug
-
Resolution: Done
-
Major
-
0.2.2
-
None
The MySQL connector currently maps TINYINT and SMALLINT columns to INT32, but they should instead map to INT16 since the range of TINYINT values is either -128 to 127 for signed or 0 to 255 for unsigned. Since INT8 can only handle values in the range 0 to 255, and therefore INT8 is not a good choice for a value. And the JDBC Specification also suggest the proper Java type for SQL-99's TINYINT is short, which maps to Kafka Connect's INT16.
This change will be backward compatible, although the generated Kafka Connect schema will be different than in previous versions. This shouldn't cause a problem, since clients should expect to handle schema changes, and this schema change does comply with Avro schema evolution rules.