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

sql: use InputCount and Input planNode methods to walk check plans #143464

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Mar 26, 2025

sql: use InputCount and Input planNode methods to walk check plans

The Input and InputCount methods of the planNode interface are now
used to walk plan node trees of post-query checks. This continues the
effort to deprecate and remove the plan node walkers (see #137620 for
more details on the motivation for this).

Epic: None
Release note: None

@mgartner mgartner requested a review from a team March 26, 2025 00:26
@mgartner mgartner requested a review from a team as a code owner March 26, 2025 00:26
@mgartner mgartner requested review from rytaft and removed request for a team March 26, 2025 00:26
Copy link

blathers-crl bot commented Mar 26, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

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

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mgartner mgartner requested a review from DrewKimball March 26, 2025 00:38
Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball and @rytaft)


pkg/sql/distsql_running.go line 2582 at r1 (raw file):

			return errors.AssertionFailedf("unexpectedly physical plan is used for a parallel CHECK")
		}
		// Ignore the error since our observer never returns an error.

nit: this comment is no longer relevant.

The Input and InputCount methods of the planNode interface are now
used to walk plan node trees of post-query checks. This continues the
effort to deprecate and remove the plan node walkers (see cockroachdb#137620 for
more details on the motivation for this).

Release note: None
@mgartner mgartner force-pushed the remove-checks-walk-plan branch from 532cb6e to 68e822f Compare March 26, 2025 00:52
Copy link
Collaborator Author

@mgartner mgartner 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! 1 of 0 LGTMs obtained (waiting on @DrewKimball and @rytaft)


pkg/sql/distsql_running.go line 2582 at r1 (raw file):

Previously, yuzefovich (Yahor Yuzefovich) wrote…

nit: this comment is no longer relevant.

Good catch. Done.

@mgartner
Copy link
Collaborator Author

bors r+

@craig craig bot merged commit b6e1332 into cockroachdb:master Mar 26, 2025
23 of 24 checks passed
@mgartner mgartner deleted the remove-checks-walk-plan branch March 26, 2025 15:09
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.

None yet

3 participants