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: update tenant_span builtins for consistent output #104946

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

stevendanna
Copy link
Collaborator

@stevendanna stevendanna commented Jun 15, 2023

The codec's TenantSpan() function was changed to avoid PrefixEnd(). Here, we update overloads of crdb_internal.tenant_span to all use TenantSpan() to avoid inconsistent output from different overloads.

Note, I don't believe that the use of PrefixEnd() in this function constituted a problem in our current usage as the only real use of this function was in calls to crdb_internal.fingerprint() or crdb_internal.scan() where the EndKey is only used as an upper-bound for iteration.

Informs #104928

Epic: none

Release note: None

@stevendanna stevendanna requested a review from a team as a code owner June 15, 2023 10:10
@cockroach-teamcity
Copy link
Member

This change is Reviewable

The codec's TenantSpan() function was changed to avoid PrefixEnd().
Here, we update overloads of crdb_internal.tenant_span to all use
TenantSpan() to avoid inconsistent output from different overloads.

Note, I don't believe that the use of PrefixEnd() in this function
constituted a problem in our current usage as the only real use of
this function was in calls to crdb_internal.fingerprint() or
crdb_internal.scan() where the EndKey is only used as an upper-bound
for iteration.

Epic: none

Release note: None
Copy link
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

:lgtm:

Should we also link to #104928 as the tracking issue here?

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

@stevendanna
Copy link
Collaborator Author

TFTR!

bors r=arulajmani

@craig
Copy link
Contributor

craig bot commented Jun 15, 2023

Build succeeded:

@craig craig bot merged commit ba010f9 into cockroachdb:master Jun 15, 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