Skip to content

Commit

Permalink
output kafka tableMap 格式输出新增 binlog_timestamp 字段
Browse files Browse the repository at this point in the history
  • Loading branch information
jc3wish committed Oct 16, 2024
1 parent 5a3ef3a commit 59a99e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/driver/table_map_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func (c *PluginDataType) ToTableMapObject() (data map[string]interface{}, err er
} else {
data["bifrost_query"] = c.Query
}
data["binlog_timestamp"] = fmt.Sprint(c.Timestamp)
data["binlog_event_type"] = c.EventType
data["bifrost_pri"] = strings.Join(c.Pri, ",")
data["bifrost_database"] = c.SchemaName
Expand Down

0 comments on commit 59a99e0

Please sign in to comment.