forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…db#79541 cockroachdb#79561 cockroachdb#79584 79465: changefeedccl: error on duplicate targets r=HonoreDB a=HonoreDB Previously, behavior if you gave two equivalent targets in a changefeed was undefined. This PR adds validation and an error. For example, `use defaultdb; CREATE CHANGEFEED FOR defaultdb.foo, TABLE foo` will error and give the canonicalized targets that resolved to the same table. You can still do `FOR db1.foo, db2.foo` as those will resolve to different tables even though they may emit to the same topic. Closes cockroachdb#78285 Release note (sql change): Changefeed statements now detect duplicate targets and throw an error. 79523: backupccl: ensure user passes locality aware uris with incremental_location r=benbardin a=msbutler Release note (sql change): This patch ensures the user passes the same number of locality aware URIs for the full backup destination as the incremental_location parameter. I.e. Good: `BACKUP INTO LATEST IN ($1, $2, $3) WITH incremental_location = ($4, $5, $6)` Bad: `BACKUP INTO LATEST IN $1 WITH incremental_location = ($2, $3, $4)` Note that the non locality uris for the full backup don't really affect incremental backup planning -- the patch just adds guardrails to the UX. Further work will ensure users cannot create incremental backup chains with mixed localities (cockroachdb#79135) 79538: spanconfigmanager: create auto span config reconciliation job as node r=arulajmani a=arulajmani Previously, we were creating this thing as the root user. Node is more appropriate here given the node is acting on its own behalf, instead of the job being created by an actual end-user. Release note: None 79541: bazel: provide opt-out for `crdb_test` configuration, update nightly r=mari-crl,cucaroach a=rickystewart Up until this point we've forced running in the `test` configuration when running `bazel test`; we simply provide a `crdb_test_off` configuration to turn that logic off if requested. Also update the one nightly that needs to consume this. Closes cockroachdb#79478. Release note: None 79561: sql: fix bug in ALTER INDEX ... PARTITION BY r=ajwerner a=ajwerner There was a subtle bug here whereby we'd increment the version an extra time when running ALTER INDEX ... PARTITION BY in the same transaction as a previous DDL to the same table. It's not exactly clear what the implications here would be. They are subtle. Release note: None 79584: dev: fix staging error post-`dev build tests` r=irfansharif a=irfansharif We were treating the test target as a `go_binary`, therefore trying to stage it. Release note: None Co-authored-by: Aaron Zinger <[email protected]> Co-authored-by: Michael Butler <[email protected]> Co-authored-by: arulajmani <[email protected]> Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: irfan sharif <[email protected]>
- Loading branch information
Showing
15 changed files
with
137 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
pkg/ccl/logictestccl/testdata/logic_test/schema_change_in_txn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Regression test for a situation involving creating a table in a transaction | ||
# and altering the index when referenced by name. | ||
subtest index_resolution_does_not_lead_to_new_version | ||
|
||
statement ok | ||
BEGIN; | ||
CREATE DATABASE db; | ||
CREATE TABLE db.t(i INT PRIMARY KEY, j INT, k INT); | ||
CREATE INDEX idx_i ON db.t (i); | ||
ALTER INDEX db.t@idx_i PARTITION BY LIST (i) ( | ||
PARTITION one_and_five VALUES IN (1, 5), | ||
PARTITION everything_else VALUES IN (DEFAULT) | ||
); | ||
COMMIT; | ||
|
||
# Before the change which introduced this test, it would erroneously return 2. | ||
query I | ||
SELECT (crdb_internal.pb_to_json('desc', descriptor)->'table'->>'version')::INT8 | ||
FROM system.descriptor | ||
WHERE id = 'db.t'::regclass; | ||
---- | ||
1 | ||
|
||
statement ok | ||
DROP DATABASE db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters