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
156016: sql/*: load external statement hints from the hints cache r=DrewKimball a=michae2
**sql/\*: load external statement hints from the hints cache**
When making a `sql.Statement`, call `MaybeGetStatementHints` to load any
applicable external statement hints from the hint cache. We don't yet do
anything with the hints once they're loaded, but we do save them in prepared
statements.
A few notable code paths are not yet loading hints from the hints cache:
- SQL statements within UDFs and SPs
- Views
Informs: #153633
Release note: None
---
**sql, sqltelemetry: add telemetry counter for external statement hints**
Informs: #153633
Release note: None
---
**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
---
**logictest: add tests for loading external statement hints**
Test that we're loading external statement hints correctly.
Informs: #153633
Release note: None
156303: kvserver: use Pebble snapshot for catchup scans r=stevendanna a=sumeerbhola
The snapshot is used to create an iterator, which is recreated based on the storage.snapshot.recreate_iter_duration cluster setting, which defaults to 20s.
This is mostly plumbing changes, except for catchup_scan.go.
Fixes#133851
Epic: none
Release note (ops change): The cluster setting
storage.snapshot.recreate_iter_duration (default 20s) controls how frequently a long-lived engine iterator, backed by an engine snapshot, will be closed and recreated. Currently, it is only used for iterators used in rangefeed catchup scans.
156655: sql: update cluster version checks in ElementCreationMetadata r=shghasemi a=shghasemi
This change adds `In_26_1OrLater` to the ElementCreationMetadata.
It will be used in future commits to enable/disable new schema changer
elements. It also removes `in_23_1OrLater` as it's no longer in use.
Part of: #142918
Release note: None
Co-authored-by: Michael Erickson <[email protected]>
Co-authored-by: sumeerbhola <[email protected]>
Co-authored-by: Shadi Ghasemitaheri <[email protected]>
0 commit comments