Skip to content

Commit 50d50aa

Browse files
authored
ticdc: add vector type in output protocol (#20767)
1 parent 5c36e60 commit 50d50aa

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

ticdc/ticdc-avro-protocol.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ If one column can be NULL, the Column data format can be:
205205
| ENUM | ENUM | string | - |
206206
| SET | SET | string | - |
207207
| DECIMAL | DECIMAL | bytes | When `avro-decimal-handling-mode` is string, AVRO_TYPE is string. |
208+
| TiDBVECTORFloat32 | TiDBVECTORFloat32 | string | - |
208209

209210
In the Avro protocol, two other `sink-uri` parameters might affect the Column data format as well: `avro-decimal-handling-mode` and `avro-bigint-unsigned-handling-mode`.
210211

ticdc/ticdc-canal-json.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ In the `sqlType` field, the Canal-JSON format records Java SQL Type of each colu
213213
| Set | -7 |
214214
| Bit | -7 |
215215
| JSON | 12 |
216+
| TiDBVectorFloat32 | 12 |
216217

217218
## Integer types
218219

ticdc/ticdc-csv.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ When `include-commit-ts = true` and `output-old-value = true`, the DML events of
102102
| `DECIMAL` | String | `"129012.1230000"` | - |
103103
| `ENUM` | String | `"a"` | - |
104104
| `SET` | String | `"a,b"` | - |
105+
| `TiDBVectorFloat32` | String | `"[1.23, -0.4]"` | - |

ticdc/ticdc-open-protocol.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ Currently, TiCDC does not provide the standard parsing library for TiCDC Open Pr
308308
| LONGTEXT/LONGBLOB | 251 | {"t":251,"v":"5rWL6K+VdGV4dA=="} | The value is encoded in Base64. |
309309
| TEXT/BLOB | 252 | {"t":252,"v":"5rWL6K+VdGV4dA=="} | The value is encoded in Base64. |
310310
| CHAR/BINARY | 254 | {"t":254,"v":"test"} / {"t":254,"v":"\\\\x89PNG\\\\r\\\\n\\\\x1a\\\\n"} | The value is encoded in UTF-8. When the upstream type is BINARY, invisible characters are escaped. |
311+
| TiDBVectorFloat32 | 225 | {"t":225,"v":"[1.23, -0.4]"} | |
311312
| GEOMETRY | 255 | | Unsupported |
312313

313314
## DDL Type Code

ticdc/ticdc-simple-protocol.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ The following table describes the value range of the `mysqlType` field in the Ti
708708
| bit | / | uint64 | long |
709709
| json | / | string | string |
710710
| bool | / | int64 | long |
711+
| TiDBVectorFloat32 | / | string | string |
711712

712713
### Avro schema definition
713714

0 commit comments

Comments
 (0)