Skip to content

Commit f9a1c30

Browse files
committed
fix: Drop custom type for Inet, Mac Address
1 parent 7eef56a commit f9a1c30

File tree

1 file changed

+0
-4
lines changed
  • plugins/destination/mysql/client

1 file changed

+0
-4
lines changed

plugins/destination/mysql/client/types.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ func mySQLTypeToArrowType(tableName string, columnName string, sqlType string) (
3131
"double": arrow.PrimitiveTypes.Float64,
3232
"binary(16)": types.ExtensionTypes.UUID,
3333
"blob": arrow.BinaryTypes.LargeBinary,
34-
"nvarchar(255)": types.ExtensionTypes.Inet,
35-
"varchar(255)": types.ExtensionTypes.Inet,
3634
"text": arrow.BinaryTypes.LargeString,
3735
"json": types.ExtensionTypes.JSON,
3836
}
@@ -83,8 +81,6 @@ func arrowTypeToMySqlStr(t arrow.DataType) string {
8381
return "json"
8482
case *arrow.StructType:
8583
return "json"
86-
case *types.InetType, *types.MacType:
87-
return "nvarchar(255)"
8884
default:
8985
return "text"
9086
}

0 commit comments

Comments
 (0)