Commit 196affc
authored
Fix abort on inverted time-travel range (#890)
Time-travel queries are supposed to return an empty result set when the time range is empty. This extends to inverted ranges as well, i.e. an empty result set is always returned when the start time is after the end time. However, the underlying TileDB query actually aborts when an inverted range is given. This was usually missed by CI because the test was so small that the start and end wall clock times used were the same, resulting in the expected behaviour. This commit fixes the issue by short circuiting and skipping the TileDB query altogether when the range is inverted.1 parent ca5a8b9 commit 196affc
3 files changed
Lines changed: 55 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
| 575 | + | |
| 576 | + | |
574 | 577 | | |
575 | 578 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
| 579 | + | |
| 580 | + | |
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| |||
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
| 591 | + | |
| 592 | + | |
594 | 593 | | |
595 | 594 | | |
596 | 595 | | |
| |||
600 | 599 | | |
601 | 600 | | |
602 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
603 | 625 | | |
604 | 626 | | |
605 | 627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
815 | 825 | | |
816 | 826 | | |
817 | 827 | | |
| |||
881 | 891 | | |
882 | 892 | | |
883 | 893 | | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
884 | 899 | | |
885 | 900 | | |
886 | 901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
368 | 374 | | |
369 | 375 | | |
370 | 376 | | |
| |||
2587 | 2593 | | |
2588 | 2594 | | |
2589 | 2595 | | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
2590 | 2600 | | |
2591 | 2601 | | |
2592 | 2602 | | |
| |||
0 commit comments