Skip to content

sql: update tenant_span builtins for consistent output#104946

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
stevendanna:crdb_internal_tenant_span_fix
Jun 15, 2023
Merged

sql: update tenant_span builtins for consistent output#104946
craig[bot] merged 1 commit intocockroachdb:masterfrom
stevendanna:crdb_internal_tenant_span_fix

Conversation

@stevendanna
Copy link
Copy Markdown
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
Copy Markdown
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
@stevendanna stevendanna force-pushed the crdb_internal_tenant_span_fix branch from a47ec59 to 13fc8c5 Compare June 15, 2023 10:11
@stevendanna stevendanna requested a review from arulajmani June 15, 2023 10:12
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

TFTR!

bors r=arulajmani

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