Skip to content

Commit

Permalink
Merge branch 'main' into wangzheng/fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
WanYixian authored Dec 9, 2024
2 parents 6b36510 + e127a3a commit 0abc88c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions integrations/sources/mysql-cdc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,9 @@ Below are the metadata columns available for MySQL CDC.
| Field | Notes |
| :------------- | :-------------------- |
| database\_name | Name of the database. |
| schema\_name | Name of the schema. |
| table\_name | Name of the table. |

For instance, the person table below contains columns for typical personal information. It also includes metadata fields (`database_name`, `schema_name`, `table_name`) to provide contextual information about where the data resides within the MySQL database.
For instance, the person table below contains columns for typical personal information. It also includes metadata fields (`database_name`, `table_name`) to provide contextual information about where the data resides within the MySQL database.

```sql
CREATE TABLE person (
Expand All @@ -217,7 +216,6 @@ CREATE TABLE person (
PRIMARY KEY (id)
) INCLUDE TIMESTAMP AS commit_ts
INCLUDE DATABASE_NAME as database_name
INCLUDE SCHEMA_NAME as schema_name
INCLUDE TABLE_NAME as table_name
FROM mysql_source TABLE 'public.person';
```
Expand Down

0 comments on commit 0abc88c

Please sign in to comment.