diff --git a/pkg/common/table_info_shared_schema_guard_test.go b/pkg/common/table_info_shared_schema_guard_test.go index 15cb20fd64..b3dc23a47f 100644 --- a/pkg/common/table_info_shared_schema_guard_test.go +++ b/pkg/common/table_info_shared_schema_guard_test.go @@ -122,7 +122,7 @@ func TestLatestTiDBTableInfoSharedSchemaGuard(t *testing.T) { modulePath: "github.com/pingcap/tidb/pkg/parser", pkgRelativePath: "types", typeName: "FieldType", - expectedFields: []string{"tp", "flag", "flen", "decimal", "charset", "collate", "elems", "elemsIsBinaryLit", "array"}, + expectedFields: []string{"tp", "flag", "flen", "decimal", "charset", "collate", "elems", "elemsIsBinaryLit", "array", "subtype"}, }, } diff --git a/pkg/sink/codec/canal/helper.go b/pkg/sink/codec/canal/helper.go index 3ddf163971..7127252cda 100644 --- a/pkg/sink/codec/canal/helper.go +++ b/pkg/sink/codec/canal/helper.go @@ -85,6 +85,10 @@ func mysqlType2JavaType(t byte, isBinary bool) common.JavaSQLType { return common.JavaSQLTypeVARCHAR case mysql.TypeTiDBVectorFloat32: return common.JavaSQLTypeVARCHAR + case mysql.TypeNull: + return common.JavaSQLTypeNULL + case mysql.TypeGeometry: + return common.JavaSQLTypeBINARY default: } return common.JavaSQLTypeVARCHAR