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

crosscluster/logical: add SKIP SCHEMA CHECK option #131090

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

msbutler
Copy link
Collaborator

PR #130905 added several checks to LDR stream planning to ensure a bidrectional stream will suceed. A user may want to skip the table equivalency checks (e.g. all constraints are matching) if they are running a unidirectional stream or if they simply want to live life on the edge.

Epic: none

Release note: none

PR cockroachdb#130905 added several checks to LDR stream planning to ensure a bidrectional
stream will suceed. A user may want to skip the table equivalency checks (e.g.
all constraints are matching) if they are running a unidirectional stream or if
they simply want to live life on the edge.

Epic: none

Release note: none
@msbutler msbutler self-assigned this Sep 20, 2024
@msbutler msbutler requested review from a team as code owners September 20, 2024 14:06
@msbutler msbutler requested review from azhu-crl and removed request for a team September 20, 2024 14:06
Copy link

blathers-crl bot commented Sep 20, 2024

It looks like your PR touches SQL parser code but doesn't add or edit parser tests. Please make sure you add or edit parser tests if you edit the parser.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @azhu-crl, @dt, @msbutler, and @stevendanna)


pkg/sql/catalog/tabledesc/logical_replication_helpers.go line 35 at r1 (raw file):

			return pgerror.Wrapf(err, pgcode.InvalidTableDefinition, cannotLDRMsg)
		}
	}

Do we want to throw a pgnotice just incase when the check is skipped?

Copy link
Collaborator Author

@msbutler msbutler left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @azhu-crl, @dt, @fqazi, and @stevendanna)


pkg/sql/catalog/tabledesc/logical_replication_helpers.go line 35 at r1 (raw file):

Previously, fqazi (Faizan Qazi) wrote…

Do we want to throw a pgnotice just incase when the check is skipped?

i don't think we need to. they are explicitly asking us to skip the check with the SKIP SCHEMA CHECK option.

Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @azhu-crl, @dt, @msbutler, and @stevendanna)


pkg/sql/catalog/tabledesc/logical_replication_helpers.go line 35 at r1 (raw file):

Previously, msbutler (Michael Butler) wrote…

i don't think we need to. they are explicitly asking us to skip the check with the SKIP SCHEMA CHECK option.

Fair

@msbutler
Copy link
Collaborator Author

bors r+

@craig craig bot merged commit 368f4e7 into cockroachdb:master Sep 24, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants