Skip to content

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

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
mgartner:remove-checks-walk-plan
Mar 26, 2025
Merged

sql: use InputCount and Input planNode methods to walk check plans#143464
craig[bot] merged 1 commit intocockroachdb:masterfrom
mgartner:remove-checks-walk-plan

Conversation

@mgartner
Copy link
Copy Markdown
Contributor

@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
@blathers-crl
Copy link
Copy Markdown

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
Copy Markdown
Member

This change is Reviewable

@mgartner mgartner requested a review from DrewKimball March 26, 2025 00:38
Copy link
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 26, 2025

@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.

3 participants