Commit 7fd6328
Bug fix: update range end when merging overlapping subarray ranges. (#5268)
Bug fix: update range end when merging overlapping subarray ranges.
Previously, when merging overlapping ranges, the new range end would
_always_ be updated to that of the merged range. This was a _clear_
issue if one range was fully encompassed within another. For example, if
range `{3, 4}` were merged into `{1, 10}`, the old behavior would
produce a new range of `{1, 4}`. This PR fixes the bug simply, taking
the larger of the two range ends on merge.
[sc-53970]
---
TYPE: BUG
DESC: Update range end when merging overlapping subarray ranges.
---------
Co-authored-by: KiterLuc <[email protected]>
Co-authored-by: Luc Rancourt <[email protected]>1 parent 84ff80c commit 7fd6328
File tree
3 files changed
+37
-4
lines changed- test/regression/targets
- tiledb/sm/subarray
- test
3 files changed
+37
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
531 | 561 | | |
532 | 562 | | |
533 | 563 | | |
| |||
0 commit comments