Commit aab61b6
committed
sql: add fullStatisticsID column to system.table_statistics
This commit adds a column to system.table_statistics used by
partial statistics to store an id that references the full
statistic that the partial statistics was derived from.
For full statistics, the value in this column will be NULL.
This commit updates a migration/upgrade that just included
the partialPredicate column.
Epic: CRDB-19449
Release note (sql change): system.table_statistics now
contains a column called fullStatisticsID to store an
id referencing the full table statistic the partial
statistic was derived from.1 parent a8d99a1 commit aab61b6
19 files changed
Lines changed: 157 additions & 73 deletions
File tree
- pkg
- clusterversion
- sql
- catalog
- systemschema_test/testdata
- systemschema
- execinfrapb
- logictest/testdata/logic_test
- rowexec
- stats
- upgrade/upgrades
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
596 | | - | |
| 597 | + | |
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
1299 | | - | |
| 1299 | + | |
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
| |||
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1337 | 1342 | | |
1338 | 1343 | | |
1339 | 1344 | | |
| |||
1348 | 1353 | | |
1349 | 1354 | | |
1350 | 1355 | | |
1351 | | - | |
1352 | | - | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
1353 | 1359 | | |
1354 | 1360 | | |
1355 | 1361 | | |
| |||
1360 | 1366 | | |
1361 | 1367 | | |
1362 | 1368 | | |
| 1369 | + | |
1363 | 1370 | | |
1364 | 1371 | | |
1365 | 1372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
268 | 269 | | |
269 | | - | |
| 270 | + | |
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| |||
1558 | 1559 | | |
1559 | 1560 | | |
1560 | 1561 | | |
| 1562 | + | |
1561 | 1563 | | |
1562 | 1564 | | |
1563 | 1565 | | |
| |||
1575 | 1577 | | |
1576 | 1578 | | |
1577 | 1579 | | |
| 1580 | + | |
1578 | 1581 | | |
1579 | | - | |
| 1582 | + | |
1580 | 1583 | | |
1581 | 1584 | | |
1582 | 1585 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| 274 | + | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
0 commit comments