Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed Feb 7, 2025
1 parent c51944c commit 94ef25b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tiledb/tests/test_fixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,26 @@ def test_sc62594_buffer_resize(self, array_data):
with tiledb.DenseArray(uri) as T:
assert_array_equal(array_data, T)

def test_data_buffer_too_large(self):
uri = self.path("test_agis")
dim1 = tiledb.Dim(
name="dim_0", domain=(0, 10000000000), tile=512, dtype=np.int64
)
dim2 = tiledb.Dim(
name="dim_1", domain=(0, 10000000000), tile=512, dtype=np.int64
)
att = tiledb.Attr(name="data", dtype="int8")
schema = tiledb.ArraySchema(
domain=tiledb.Domain(dim1, dim2),
attrs=(att,),
)
tiledb.Array.create(uri, schema)

with tiledb.open(uri, mode="r") as A:
with pytest.raises(OverflowError) as exc:
A[:]
assert "Data buffer size is too large" in str(exc.value)


class SOMA919Test(DiskTestCase):
"""
Expand Down

0 comments on commit 94ef25b

Please sign in to comment.