Skip to content

keysutils: remove TestingSQLCodec#104845

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
yuzefovich:mt-pretty-scanner
Jun 15, 2023
Merged

keysutils: remove TestingSQLCodec#104845
craig[bot] merged 2 commits intocockroachdb:masterfrom
yuzefovich:mt-pretty-scanner

Conversation

@yuzefovich
Copy link
Copy Markdown
Member

@yuzefovich yuzefovich commented Jun 14, 2023

server: use server's codec instead of TestingSQLCodec in some tests

Release note: None

keysutils: extend MakePrettyScannerForNamedTables to support tenants

This commit extends MakePrettyScannerForNamedTables to support keys from the secondary tenants' key space, thus, removing the last usage of TestingSQLCodec. The way this is achieved is similar to how we overwrite the tableKeyParse function for /Table prefix in the dictionary - in this commit, we overwrite the tenantKeyParse function for /Tenant prefix.

Release note: None

Fixes: #48123.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@yuzefovich yuzefovich force-pushed the mt-pretty-scanner branch 3 times, most recently from bff65bc to fe1327d Compare June 14, 2023 20:20
This commit extends `MakePrettyScannerForNamedTables` to support keys
from the secondary tenants' key space, thus, removing the last usage of
`TestingSQLCodec`. The way this is achieved is similar to how we
overwrite the tableKeyParse function for `/Table` prefix in the
dictionary - in this commit, we overwrite the tenantKeyParse function
for `/Tenant` prefix.

Release note: None
@yuzefovich yuzefovich changed the title keysutils: extend MakePrettyScannerForNamedTables to support tenants keysutils: remove TestingSQLCodec Jun 14, 2023
@yuzefovich yuzefovich marked this pull request as ready for review June 14, 2023 20:50
@yuzefovich yuzefovich requested a review from a team as a code owner June 14, 2023 20:50
@yuzefovich yuzefovich requested a review from a team June 14, 2023 20:50
@yuzefovich yuzefovich requested review from a team as code owners June 14, 2023 20:50
@yuzefovich yuzefovich requested review from knz and stevendanna June 14, 2023 20:50
Copy link
Copy Markdown
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, 10 of 10 files at r2, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @stevendanna)

@yuzefovich
Copy link
Copy Markdown
Member Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 15, 2023

Build succeeded:

@craig craig bot merged commit 8dc422f into cockroachdb:master Jun 15, 2023
@yuzefovich yuzefovich deleted the mt-pretty-scanner branch June 15, 2023 19: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.

sql/kv: remove all uses of keyutils.TestingSQLCodec (previously keys.TODOSQLCodec)

3 participants