Skip to content

ticdc: add vector type in output protocol #20767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ticdc/ticdc-avro-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ If one column can be NULL, the Column data format can be:
| ENUM | ENUM | string | - |
| SET | SET | string | - |
| DECIMAL | DECIMAL | bytes | When `avro-decimal-handling-mode` is string, AVRO_TYPE is string. |
| TiDBVECTORFloat32 | TiDBVECTORFloat32 | string | - |

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`.

Expand Down
1 change: 1 addition & 0 deletions ticdc/ticdc-canal-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ In the `sqlType` field, the Canal-JSON format records Java SQL Type of each colu
| Set | -7 |
| Bit | -7 |
| JSON | 12 |
| TiDBVectorFloat32 | 12 |

## Integer types

Expand Down
1 change: 1 addition & 0 deletions ticdc/ticdc-csv.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ When `include-commit-ts = true` and `output-old-value = true`, the DML events of
| `DECIMAL` | String | `"129012.1230000"` | - |
| `ENUM` | String | `"a"` | - |
| `SET` | String | `"a,b"` | - |
| `TiDBVectorFloat32` | String | `"[1.23, -0.4]"` | - |
1 change: 1 addition & 0 deletions ticdc/ticdc-open-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ Currently, TiCDC does not provide the standard parsing library for TiCDC Open Pr
| LONGTEXT/LONGBLOB | 251 | {"t":251,"v":"5rWL6K+VdGV4dA=="} | The value is encoded in Base64. |
| TEXT/BLOB | 252 | {"t":252,"v":"5rWL6K+VdGV4dA=="} | The value is encoded in Base64. |
| 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. |
| TiDBVectorFloat32 | 225 | {"t":225,"v":"[1.23, -0.4]"} | |
| GEOMETRY | 255 | | Unsupported |

## DDL Type Code
Expand Down
1 change: 1 addition & 0 deletions ticdc/ticdc-simple-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ The following table describes the value range of the `mysqlType` field in the Ti
| bit | / | uint64 | long |
| json | / | string | string |
| bool | / | int64 | long |
| TiDBVectorFloat32 | / | string | string |

### Avro schema definition

Expand Down