v22.1: Cannot ALTER add a column and create partial index on that column in the same transaction #83593
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
X-blathers-triaged
blathers was able to find an owner
Projects
Describe the problem
If a column is added to an existing table in a transaction and is then the subject of the WHERE clause of a partial index also part of the same transaction, you get back
This seems like a regression in 22.1 as it works in 21.2.10
To Reproduce
Splitting the partial index creation into a separate transaction works around this issue.
The following also work as expected:
Expected behavior
The transaction completes successfully.
Environment:
cockroach sql
Additional context
Schema migrations that used to work no longer do which is preventing us from adopting 22.1 unless we rewrite the schemas which carries complications.
The text was updated successfully, but these errors were encountered: