diff --git a/doc/state_storage.md b/doc/state_storage.md index 43838e97f..dc3d614ef 100644 --- a/doc/state_storage.md +++ b/doc/state_storage.md @@ -9,6 +9,17 @@ To use ClickHouse as a state storage, you need to specify the following configur ![State Storage](img/state_storage.jpg) +# Offsets table(MySQL) +The offsets table defined by the `offset.storage.jdbc.offset.table.name` +Default: **"altinity_sink_connector.replica_source_info"** +This table is used to store the binlog file, position and gtids. +| Column Name | Description | Example | +|-------------|----------------------------------------------------------------------|---------| +| id | UUID | | +| offset_key | This is the Unique key for every connector. Its a combination of `name` configuration variable and the `topic.prefix` configuration variable | [\"debezium-embedded-postgres\",{\"server\":\"embeddedconnector\"}]"| +| offset_val | This column stores the offset information for MySQL, **file**- binlog file, **pos**- binlog position, **gtids**- GTID | {"ts_sec":1724849901,"file":"mysql-bin.000003","pos":197,"gtids":"03d24fcc-6567-11ef-9978-0242ac130003:1-56"} +| record_insert_seq | Timestamp when record is inserted. | 2024-08-28 12:58:22 | +| record_insert_ts | Monotonically increasing number | 174 |