release-22.1: sql: add join types and algorithms to telemetry logging #85743
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 1/1 commits from #85524.
/cc @cockroachdb/release
This commit adds several new fields to the
SampledQuery
structure used fortelemetry logging.
Closes #85425
Release note (sql change): The structured payloads used for telemetry
logs now include the following new fields:
InnerJoinCount
: The number of inner joins in the query plan.LeftOuterJoinCount
: The number of left (or right) outer joins in the queryplan.
FullOuterJoinCount
: The number of full outer joins in the query plan.SemiJoinCount
: The number of semi joins in the query plan.AntiJoinCount
: The number of anti joins in the query plan.IntersectAllJoinCount
: The number of intersect all joins in the query plan.ExceptAllJoinCount
: The number of except all joins in the query plan.HashJoinCount
: The number of hash joins in the query plan.CrossJoinCount
: The number of cross joins in the query plan.IndexJoinCount
: The number of index joins in the query plan.LookupJoinCount
: The number of lookup joins in the query plan.MergeJoinCount
: The number of merge joins in the query plan.InvertedJoinCount
: The number of inverted joins in the query plan.ApplyJoinCount
: The number of apply joins in the query plan.ZigZagJoinCount
: The number of zig zag joins in the query plan.Release justification: Low risk telemetry change