You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add common schema metadata to messages produced by the
microsoft_sql_server_cdc input, matching the behavior of the
postgres_cdc and mysql_cdc inputs. The metadata key is
"common_schema" (rather than "schema") to avoid colliding with
the existing "schema" key that carries the database schema name.
Also adds explicit type mappings for MONEY/SMALLMONEY (string)
and TIMESTAMP/ROWVERSION (byte array), and json:"-" tags on
internal-only MessageEvent fields.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
11
11
- (Benthos) The `command` processor now emits the `exit_code` metadata field. (@mihaitodor)
12
12
- The `postgres_cdc` input now adds schema metadata to consumed messages, this can be used for automatic schema conversion in processors such as `schema_registry_encode`. (@Jeffail)
13
13
- New `iceberg` output, allows writing Iceberg data to REST catalogs in s3, gcs and adls. (@rockwotj)
14
+
- The `microsoft_sql_server_cdc` input now adds schema metadata to consumed messages, this can be used for automatic schema conversion in processors such as `schema_registry_encode`. (@Jeffail)
Copy file name to clipboardExpand all lines: docs/modules/components/pages/inputs/microsoft_sql_server_cdc.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,7 @@ Additionally, if `stream_snapshot` is set to true, then the existing data in the
98
98
99
99
This input adds the following metadata fields to each message:
100
100
- schema (Schema of the table that the message originated from)
101
+
- common_schema (The table schema in benthos common schema format, compatible with processors like parquet_encode)
101
102
- table (Name of the table that the message originated from)
102
103
- operation (Type of operation that generated the message: "read", "delete", "insert", or "update_before" and "update_after". "read" is from messages that are read in the initial snapshot phase.)
103
104
- lsn (the Log Sequence Number in Microsoft SQL Server)
Copy file name to clipboardExpand all lines: internal/impl/mssqlserver/input_mssqlserver_cdc.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ Additionally, if ` + "`" + fieldStreamSnapshot + "`" + ` is set to true, then th
59
59
60
60
This input adds the following metadata fields to each message:
61
61
- schema (Schema of the table that the message originated from)
62
+
- common_schema (The table schema in benthos common schema format, compatible with processors like parquet_encode)
62
63
- table (Name of the table that the message originated from)
63
64
- operation (Type of operation that generated the message: "read", "delete", "insert", or "update_before" and "update_after". "read" is from messages that are read in the initial snapshot phase.)
64
65
- lsn (the Log Sequence Number in Microsoft SQL Server)
0 commit comments