Skip to content

Commit cc0a5f3

Browse files
authored
Change minimum libtiledb version for CurrentDomain to 2.26 to fix daily tests - this PR cannot be included in a 0.31.* release (#2117)
1 parent 806d1ae commit cc0a5f3

8 files changed

+10
-10
lines changed

tiledb/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from tiledb.libtiledb import version as libtiledb_version
2323

24-
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 25:
24+
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 26:
2525
from .current_domain import CurrentDomain
2626
from .ndrectangle import NDRectangle
2727

tiledb/array_schema.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from .domain import Domain
1515
from .filter import Filter, FilterList
1616

17-
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 25:
17+
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 26:
1818
from .current_domain import CurrentDomain
1919

2020
_tiledb_order_to_string = {
@@ -388,7 +388,7 @@ def has_dim_label(self, name: str) -> bool:
388388
"""
389389
return self._has_dim_label(self._ctx, name)
390390

391-
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 25:
391+
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 26:
392392

393393
@property
394394
def current_domain(self) -> CurrentDomain:

tiledb/cc/current_domain.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using namespace tiledbpy::common;
1616
namespace py = pybind11;
1717

1818
void init_current_domain(py::module &m) {
19-
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 25
19+
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 26
2020
py::class_<NDRectangle>(m, "NDRectangle")
2121
.def(py::init<NDRectangle>())
2222

tiledb/cc/enum.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void init_enums(py::module &m) {
175175
.value("TIFF", TILEDB_MIME_TIFF)
176176
.value("PDF", TILEDB_MIME_PDF);
177177

178-
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 25
178+
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 26
179179
py::enum_<tiledb_current_domain_type_t>(m, "CurrentDomainType")
180180
.value("NDRECTANGLE", TILEDB_NDRECTANGLE);
181181
#endif

tiledb/cc/schema.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void init_schema(py::module &m) {
278278
ArraySchemaExperimental::add_enumeration(ctx, schema, enmr);
279279
})
280280

281-
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 25
281+
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 26
282282
.def("_current_domain",
283283
[](const ArraySchema &schema, const Context &ctx) {
284284
return ArraySchemaExperimental::current_domain(ctx, schema);

tiledb/schema_evolution.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void init_schema_evolution(py::module &m) {
100100
}
101101
})
102102

103-
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 25
103+
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 26
104104
.def("expand_current_domain",
105105
[](ArraySchemaEvolution &inst, py::object current_domain_py) {
106106
tiledb_current_domain_t *current_domain_c =

tiledb/schema_evolution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def extend_enumeration(self, enmr: Enumeration):
5252

5353
self.ase.extend_enumeration(enmr)
5454

55-
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 25:
55+
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 26:
5656
from .current_domain import CurrentDomain
5757

5858
def expand_current_domain(self, current_domain: CurrentDomain):

tiledb/tests/test_current_domain.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import tiledb
88
import tiledb.cc as lt
99

10-
if not (tiledb.libtiledb.version()[0] == 2 and tiledb.libtiledb.version()[1] >= 25):
10+
if not (tiledb.libtiledb.version()[0] == 2 and tiledb.libtiledb.version()[1] >= 26):
1111
pytest.skip(
12-
"CurrentDomain is only available in TileDB 2.25 and later",
12+
"CurrentDomain is only available in TileDB 2.26 and later",
1313
allow_module_level=True,
1414
)
1515

0 commit comments

Comments
 (0)