osheroff / mysql-binlog-connector-java

MySQL Binary Log connector
666 stars 163 forks source link

Add support for the data type MYSQL_TYPE_TYPED_ARRAY #106

Open ruanhang1993 opened 1 year ago

ruanhang1993 commented 1 year ago

Add support for the data type MYSQL_TYPE_TYPED_ARRAY. https://github.com/mysql/mysql-server/commit/9082b6a820f3948fd563cc32a050f5e8775f2855

ruanhang1993 commented 1 year ago

More details see #104.

osheroff commented 1 year ago

hi, can you tell me how to reproduce getting mysql to generate a TYPED_ARRAY event? I'd like to integration test this but am not sure quite how.

ruanhang1993 commented 1 year ago

Hi, @osheroff , Actually I am not sure when this type will occur in MySQL. I have added some unit tests for this. The code for this type deserialization is a reference to another tool canal at https://github.com/alibaba/canal/blob/master/dbsync/src/main/java/com/taobao/tddl/dbsync/binlog/event/TableMapLogEvent.java#L546.