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

[wip] improve contention event logic test #60917

Closed
wants to merge 2 commits into from

Conversation

tbg
Copy link
Member

@tbg tbg commented Feb 22, 2021

See commit message.

Ignore all but last commit.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

angelapwen and others added 2 commits February 22, 2021 12:45
Previously we introduced a `crdb_internal.payloads_for_span`
builtin that returned a JSONB array representing all payloads for
a particular span. To improve the user experience of the builtin
as well as prevent OOMs resulting from builtin usage, we replace it
with a generator builtin that returns a table representing all payloads
for a span, where each row represents a single payload.

The new builtin, also called `crdb_internal.payloads_for_span`, has
columns for the `payload_type` so that the user has the ability to
easily filter on the type, and `payload_jsonb` so the user can use
jsonb builtins to filter further.

Release note (sql change): Update `crdb_internal.payloads_for_span`
builtin to return a table instead of a JSONB array. Each row of the
table represents one payload for the given span. It has columns for
`payload_type` and `payload_jsonb`.
It's nice that it works, but the final query is a monster! I'm glad
there are [plans] to improve the UX.

[plans]: cockroachdb#60784 (comment)

Release note: None
@angelapwen
Copy link

The changes you proposed are now part of #60922 😸

@tbg
Copy link
Member Author

tbg commented Feb 22, 2021

Neat, thanks!

@tbg tbg closed this Feb 22, 2021
@tbg tbg deleted the tmp-contention-logic-test branch February 22, 2021 14:58
@angelapwen
Copy link

(Splitting it into its own commit in the other PR soon!)

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