Skip to content

Commit

Permalink
BugFix: Arrays losing CloudArray interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed Jan 16, 2025
1 parent e1f57bd commit fee9040
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tiledb/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,17 +416,14 @@ def load_typed(cls, uri, mode="r", key=None, timestamp=None, attr=None, ctx=None
if ctx is None:
ctx = default_ctx()

from .dense_array import DenseArrayImpl
from .sparse_array import SparseArrayImpl

tmp_array = preload_array(uri, mode, key, timestamp, ctx)

if tmp_array._schema()._array_type == lt.ArrayType.SPARSE:
return SparseArrayImpl(
return tiledb.SparseArray(
uri, mode, key, timestamp, attr, ctx, preloaded_array=tmp_array
)
else:
return DenseArrayImpl(
return tiledb.DenseArray(
uri, mode, key, timestamp, attr, ctx, preloaded_array=tmp_array
)

Expand Down

0 comments on commit fee9040

Please sign in to comment.