Skip to content

Commit

Permalink
[Feature][Connector-V2][mysql cdc] Conversion of tinyint(1) to bool i…
Browse files Browse the repository at this point in the history
…s supported (#5105)

Co-authored-by: zhouyao <yao.zhou@marketingforce.com>
  • Loading branch information
Carl-Zhou-CN and zhouyao authored Jul 20, 2023
1 parent 2e92c98 commit 86b1b7e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public static SeaTunnelDataType<?> convertFromColumn(Column column) {
case MYSQL_BIT:
return BasicType.BOOLEAN_TYPE;
case MYSQL_TINYINT:
return column.length() == 1 ? BasicType.BOOLEAN_TYPE : BasicType.INT_TYPE;
case MYSQL_TINYINT_UNSIGNED:
case MYSQL_SMALLINT:
case MYSQL_SMALLINT_UNSIGNED:
Expand Down

0 comments on commit 86b1b7e

Please sign in to comment.