zhangjun0x01 commented on code in PR #1708:
URL: https://github.com/apache/incubator-paimon/pull/1708#discussion_r1291128246
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/cdc/mysql/MySqlTypeUtils.java:
##########
@@ -152,6 +152,11 @@ public static DataType toDataType(
Boolean tinyInt1ToBool) {
switch (type.toUpperCase()) {
case BIT:
+ if (length == null || length == 1) {
+ return DataTypes.BOOLEAN();
Review Comment:
we refer to flink cdc , be consistent with flink cdc
https://ververica.github.io/flink-cdc-connectors/master/content/connectors/mysql-cdc.html#data-type-mapping.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]