Skip to content

Commit 9e60b94

Browse files
craig[bot]jeffswensonrailspilchen
committed
146191: sql: always use cput for ldr primary key writes r=jeffswenson a=jeffswenson This change reworks the SQL layer so that it always uses a CPUT with an origin timestamp if the LDR origin timestamp option is set. This change allows the classic and crud SQL writers to correctly implement LWW in the presence of tombstones. Note: the classic SQL writer only depends on the CPUT when inserting or upserting over a tombstone. The crud SQL writer relies on the CPut of inserts, updates, and deletes. Release note: none Fixes: #146117 147863: Remove label-merged-pr command r=jlinder a=rail This command is not used. Release note: none Epic: none 147906: workload/schemachange: allow self deps in tableHasDependencies for DROP TABLE r=spilchen a=spilchen This is a follow-up from #147834, which didn't have a complete fix. It was flagging DROP TABLE as having a dependency, when in fact it had a self-dependency, but it doesn't block the DROP TABLE (seen in this occurrence #147514 (comment)) This change updates tableHasDependencies to optionally include self-referencing dependencies when skipSelfRef is false. This is needed for DROP TABLE, where self-dependencies (e.g., from triggers) are safe to ignore because they are cleaned up as part of the drop. In contrast, RENAME TABLE must still block on these, since the dependent reference would not be updated by the rename. The function now takes a skipSelfRef flag to distinguish these cases, and excludes only self-dependencies when skipSelfRef is true. Informs #147514 Epic: None Release note: none Co-authored-by: Jeff Swenson <[email protected]> Co-authored-by: Rail Aliiev <[email protected]> Co-authored-by: Matt Spilchen <[email protected]>
4 parents b6b8560 + ab8a53b + a7bc34f + d0b2a09 commit 9e60b94

34 files changed

+109
-528
lines changed

pkg/BUILD.bazel

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ ALL_TESTS = [
143143
"//pkg/cmd/docs-issue-generation:docs-issue-generation_test",
144144
"//pkg/cmd/drtprod/cli/commands:commands_test",
145145
"//pkg/cmd/github-pull-request-make:github-pull-request-make_test",
146-
"//pkg/cmd/label-merged-pr:label-merged-pr_test",
147146
"//pkg/cmd/microbench-ci:microbench-ci_test",
148147
"//pkg/cmd/mirror/go:go_test",
149148
"//pkg/cmd/publish-artifacts:publish-artifacts_test",
@@ -1183,9 +1182,6 @@ GO_TARGETS = [
11831182
"//pkg/cmd/gossipsim:gossipsim",
11841183
"//pkg/cmd/gossipsim:gossipsim_lib",
11851184
"//pkg/cmd/import-tools:import-tools",
1186-
"//pkg/cmd/label-merged-pr:label-merged-pr",
1187-
"//pkg/cmd/label-merged-pr:label-merged-pr_lib",
1188-
"//pkg/cmd/label-merged-pr:label-merged-pr_test",
11891185
"//pkg/cmd/microbench-ci:microbench-ci",
11901186
"//pkg/cmd/microbench-ci:microbench-ci_lib",
11911187
"//pkg/cmd/microbench-ci:microbench-ci_test",

pkg/cmd/dev/build.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ var buildTargetMapping = map[string]string{
8888
"execgen": "//pkg/sql/colexec/execgen/cmd/execgen:execgen",
8989
"gofmt": "@com_github_cockroachdb_gostdlib//cmd/gofmt:gofmt",
9090
"goimports": "@com_github_cockroachdb_gostdlib//x/tools/cmd/goimports:goimports",
91-
"label-merged-pr": "//pkg/cmd/label-merged-pr:label-merged-pr",
9291
"geos": geosTarget,
9392
"langgen": "//pkg/sql/opt/optgen/cmd/langgen:langgen",
9493
"libgeos": geosTarget,

pkg/cmd/label-merged-pr/BUILD.bazel

Lines changed: 0 additions & 24 deletions
This file was deleted.

pkg/cmd/label-merged-pr/label-merged-pr-wrapper.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

pkg/cmd/label-merged-pr/main.go

Lines changed: 0 additions & 257 deletions
This file was deleted.

0 commit comments

Comments
 (0)