Skip to content
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

Doc: upstream table name prefixed with database name #50

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

WanYixian
Copy link
Collaborator

@WanYixian WanYixian commented Nov 13, 2024

Description

Upstream table name needs to be prefixed with database name

Related code PR

risingwavelabs/risingwave#18868

Related doc issue

Resolve https://github.com/risingwavelabs/risingwave-docs/issues/2690

Preview

image

Copy link

@StrikeW StrikeW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When creating a CDC table, the upstream table name should be prefixed with database name. See the example below:

This change only applies to the sql server cdc connector. The syntax of other cdc connectors are same as before.

@WanYixian
Copy link
Collaborator Author

When creating a CDC table, the upstream table name should be prefixed with database name. See the example below:

This change only applies to the sql server cdc connector. The syntax of other cdc connectors are same as before.

Updated, please take another look

Copy link

@StrikeW StrikeW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest lgtm

@@ -87,7 +87,7 @@ CREATE TABLE [ IF NOT EXISTS ] table_name (
WITH (
snapshot='true'
)
FROM source TABLE table_name;
FROM source TABLE database_name.table_name;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest to use a identifier sqlserver_table_name in the syntax, and add explaination in the table below.

sqlserver_table_name: identifier of SQL Server table in the format of 'database_name.schema_name.table_name'

@WanYixian WanYixian merged commit 3f671b6 into main Nov 13, 2024
1 check passed
@WanYixian WanYixian deleted the wyx/resolve_2690 branch November 13, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants