Skip to content

Commit

Permalink
telemetry: deflake generic query plan telemetry test
Browse files Browse the repository at this point in the history
Narrowed down scope of counter filters in order to not catch stray
increment events from background queries.

Resolves: #128045, #128171

Release note: None
  • Loading branch information
dhartunian committed Aug 6, 2024
1 parent b408a0c commit 1f24839
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion pkg/ccl/telemetryccl/testdata/telemetry/generic
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ WHERE v = $1
----

feature-list
sql.plan.type.*
sql.plan.type.force-custom
----

exec
Expand Down Expand Up @@ -63,6 +63,10 @@ feature-usage
SELECT * FROM kv WHERE v = 100
----

feature-list
sql.plan.type.force-generic
----

exec
SET plan_cache_mode = force_generic_plan
----
Expand Down Expand Up @@ -90,12 +94,20 @@ exec
SET plan_cache_mode = auto
----

feature-list
sql.plan.type.auto-generic
----

# If the placeholder fast-path is used, the plan is always generic.
feature-usage
EXECUTE p_pk(100)
----
sql.plan.type.auto-generic

feature-list
sql.plan.type.auto-custom
----

# The first five executions of p_join have custom plans while establishing an
# average cost. One of the custom executions occurred above.
feature-usage
Expand All @@ -118,6 +130,11 @@ EXECUTE p_join(5)
----
sql.plan.type.auto-custom


feature-list
sql.plan.type.auto-generic
----

# The sixth execution uses a generic plan.
feature-usage
EXECUTE p_join(6)
Expand Down

0 comments on commit 1f24839

Please sign in to comment.