Skip to content

*: identify remaining uses of TODOSQLCodec#99774

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20230328-sql-codec
Mar 28, 2023
Merged

*: identify remaining uses of TODOSQLCodec#99774
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20230328-sql-codec

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented Mar 28, 2023

The TODOSQLCodec was a bug waiting to happen.

The only reasonable remaining purpose is for use in tests. As such, this change moves its definition to a test-only package (we have a linter that verifies that testutils is not included in non-test code).

This change then identifies the one non-reasonable remaining purposes and identifies it properly as a bug linked to #48123.

Release note: None
Epic: None

The `TODOSQLCodec` was a bug waiting to happen.

The only reasonable remaining purpose is for use in tests. As such,
this change moves its definition to a test-only package (we have a
linter that verifies that `testutils` is not included in non-test code).

This change then identifies the one non-reasonable remaining purposes
and identifies it properly as a bug linked to cockroachdb#48123.

Release note: None
@knz knz requested a review from stevendanna March 28, 2023 07:54
@knz knz requested review from a team as code owners March 28, 2023 07:54
@knz knz requested a review from yuzefovich March 28, 2023 07:54
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

Thanks for reviewing all the uses of this. Nice to see we only have one non-test use.

@knz
Copy link
Copy Markdown
Contributor Author

knz commented Mar 28, 2023

TFYR!

bors r=stevendanna

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 28, 2023

Build succeeded:

@craig craig bot merged commit 0745cd4 into cockroachdb:master Mar 28, 2023
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.

3 participants