Commit a84789e
authored
Support reading V1 group details with explicit version in the name. (#4744)
[SC-41275](https://app.shortcut.com/tiledb-inc/story/41275/fix-v1-groups-written-with-latest-version)
When version 2 of the group details format was introduced in #3928 (2.16
and also backported to 2.15), the names of group details V2 files were
of the format `__t1_t2_id_version`, and V1 kept using `__t1_t2_id` for
compatibility. In #4530 (2.19), V1 files started being written with the
new format as well. This confused the group reader, which considered
group details files with names of the form `__t1_t2_id_1` as V2, merely
because they had a version field in their name.
This PR fixes the group reader, making it always consider the version if
it is present in the name of details file. The change has been validated
by writing to a V1 group and then reading from it. The test group was
created locally by Core version 2.14 and was added in
`test/inputs/groups` (its size is tiny so it can safely be stored in the
repository).
---
TYPE: BUG
DESC: Support reading V1 group details with explicit version in the
name.1 parent c6c7615 commit a84789e
File tree
5 files changed
+62
-1
lines changed- test
- inputs/groups/group_v1
- __group
- subgroup1
- src
- tiledb/sm/group
5 files changed
+62
-1
lines changedBinary file not shown.
Whitespace-only changes.
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
1428 | 1434 | | |
1429 | 1435 | | |
1430 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
775 | 776 | | |
776 | 777 | | |
777 | 778 | | |
| 779 | + | |
| 780 | + | |
778 | 781 | | |
779 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
780 | 785 | | |
781 | 786 | | |
782 | 787 | | |
| |||
0 commit comments