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
152882: sql: fix placeholder type checking r=mgartner a=mgartner
Previously, an binary expression with two placeholders could be
incorrectly typed in a prepared statement. The issue could occur when
one placeholder had an `UNKNOWN` type hint and one with a non-ambiguous
type hint, e.g., `INT`, `DECIMAL`, etc. The `UNKNOWN` type hint could
take precedence over the non-ambiguous type. This could cause incorrect
results in some cases.
The bug has been fixed by preferring non-ambiguous type hints over
ambiguous ones.
Fixes#152664
Release note (bug fix): A bug in type-checking placeholders with
`UNKNOWN` types has been fixed. It could cause incorrect results in some
cases.
153419: sql/stats: merge all arbitrary partial and full table statistics r=Uzair5162 a=Uzair5162
This commit generalizes partial and full stat merging in the stats cache to support partial stats collected over any range of values in a column. Non-extreme partial stats are treated as covering a single span, and extreme partials continue to separate the lower and upper extreme buckets as before.
Additionally, merged stats now apply all partial stats collected after the latest full stat, in order of creation. Previously, we could only merge partial stats collected at the extremes of the index, and would only merge the latest one.
Part of: #93998
Release note (sql change): The optimizer can now use table statistics that merge the latest full statistic with all newer partial statistics, including those over arbitrary constraints over a single span.
154654: restore: deflake TestRestoreCheckpointing r=msbutler a=kev-cao
The current `TestRestoreCheckpointing` waits for job progress to be updated by sleeping for a duration greater than the checkpoint interval. While this works the vast majority of the time, if the test cluster is overloaded, it is not sufficient and we can end up resuming the job before the progress was updated. This results in more spans being processed than expected.
This commit updates the test to instead check the contents of the job progress checkpoint and wait until the checkpoint contains all processed spans from before the pause.
Fixes: #153848
Release note: None
154676: stmtdiagnostics: don't create statement dignostics request for txn di… r=kyle-a-wong a=kyle-a-wong
…agnostics
Previously, `innerInsertStatementDiagnostics` was creating new statement diagnostics requests when a transaction diagnostics bundle was being created. Now, these new statement requests will no longer be created.
Epic: CRDB-53541
Release note: None
154677: sql: remove canModifySchema interface r=mgartner a=mgartner
The `canModifySchema` interface has been removed. The `CanModifySchema`
function now has special logic for the two non-DDL statements that
modify the schema: `DISCARD` and `SET ZONE CONFIG`. Additionally,
`CanModifySchema` now returns early for DML statements—a very minor
optimization to avoid an unnecessary invocation of the
`StatementReturnType` method which can chase additional pointers for
`RETURNING` nodes of `INSERT` and `UPDATE` statements.
Release note: None
154679: sql: move bufferable session var lookup to init-time r=mgartner a=mgartner
Lookups for bufferable session vars are now performed once at init-time
rather than every time `(*connExecutor).reportSessionDataChanges` is
called.
Release note: None
154698: workflows: update names of GitHub Action runner groups r=rail a=rickystewart
These are the new-style names that will make it easier to migrate to Ubuntu 22.04+ when the time comes.
154711: sql: update stats for descriptor table r=rafiss a=rafiss
This is needed in order to enforce the
sql.schema.approx_max_object_count cluster setting, which relies on optimizer table statistics to find the count.
Since the schemachanger uses the KV API to write to the descriptor table, we need to explicitly notify the stats refresher when it should compute new stats for the table.
informs: #148286
Release note: None
### schematelemetry: update object count gauge using table stats
In order to support larger scales of object counts, we switch away from
using a full table scan on system.descriptors in order to update the
object count gauge.
Instead, we use table stats on system.descriptor now. The
schematelemetry job is updated so it notifies the stats refresher to
keep the stats up to date. Note that the stats refresher is also
notified with a partial count already.
Epic CRDB-48806
Release note: None
154733: changefeedccl: fix slow acquisition log message r=andyyang890 a=stevendanna
Previously,
have been waiting rangefeed attempting to acquire changefeed quota (buffer=5.000049088s)
Now,
have been waiting 5.000049088s attempting to acquire changefeed quota (buffer=rangefeed)
It would be nice if the buffer name `rangefeed` was something that indicated that this a buffer that lives in the changefeed, but changing the name impacts the metrics which doesn't seem worth it.
Epic: none
Release note: None
154742: dev-inf: Use pull_request_target for Claude Code review action r=rickystewart a=ajstorm
Previously, the Claude Code PR Review GitHub Action used the pull_request trigger, which runs in the context of the PR branch. This prevents GitHub from injecting OIDC tokens when the PR comes from a forked repository, causing authentication failures with Google Cloud's Workload Identity Federation.
This change updates the workflow to use pull_request_target instead, which runs in the context of the base repository. This allows OIDC tokens to be injected even for fork PRs, enabling authentication with Google Cloud for Vertex AI access.
Our standard git flow requires developers to create PRs from forks, so this change is necessary for the action to function in our development workflow. The workflow is safe to run with pull_request_target because it does not check out the PR branch - all PR content is fetched safely via the GitHub API using 'gh pr diff' and 'gh pr view'.
Release note: None
Epic: None
Co-authored-by: Marcus Gartner <[email protected]>
Co-authored-by: Uzair Ahmad <[email protected]>
Co-authored-by: Kevin Cao <[email protected]>
Co-authored-by: Kyle Wong <[email protected]>
Co-authored-by: Ricky Stewart <[email protected]>
Co-authored-by: Rafi Shamim <[email protected]>
Co-authored-by: Steven Danna <[email protected]>
Co-authored-by: Adam Storm <[email protected]>
0 commit comments