Commit 07d4a96
committed
sql: use existing PK index for inverted index valdiation
Previously, when we were validating inverted index, we made all first
mutations public. For a PK swap operation this meant that incomplete
primary indexes would be made public, which may not be fully ready for
scans depending on the plan. This meant after recent changes to have
better plans for alter primary key, we could end up scanning incomplete
primary indexes. To address this, this patch ensures that only non-PK
swap indexes are used for validating inverted indexes.
Fixes: #155145
Fixes: #155141
Release note: None1 parent 2c1b868 commit 07d4a96
File tree
2 files changed
+24
-2
lines changed- pkg/sql
- logictest/testdata/logic_test
2 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1785 | 1785 | | |
1786 | 1786 | | |
1787 | 1787 | | |
1788 | | - | |
1789 | | - | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
1790 | 1792 | | |
1791 | 1793 | | |
1792 | 1794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5265 | 5265 | | |
5266 | 5266 | | |
5267 | 5267 | | |
| 5268 | + | |
| 5269 | + | |
| 5270 | + | |
| 5271 | + | |
| 5272 | + | |
| 5273 | + | |
| 5274 | + | |
| 5275 | + | |
| 5276 | + | |
| 5277 | + | |
| 5278 | + | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
| 5283 | + | |
| 5284 | + | |
| 5285 | + | |
| 5286 | + | |
| 5287 | + | |
0 commit comments