You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql/hints, builtins: add two more statement_hints_cache builtins
Add new builtins `crdb_internal.clear_statement_hints_cache` and
`crdb_internal.await_statement_hints_cache` which will be useful for
testing.
The first builtin clears the hintCache, similar to
`clear_query_plan_cache` and `clear_table_stats_cache`. (I debated
whether this builtin should also set hintedHashes to nil and restart the
changefeed, but that seems too different from
`clear_table_stats_cache`.)
The second builtin blocks until the hints cache rangefeed watcher has
caught up with the present, which usually takes a couple of
seconds. This is handy when we want to test a statement using the hint
immediately after adding the hint to system.statement_hints.
Informs: #153633
Release note: None
0 commit comments