Skip to content

Use array "current domain" for vector dimension #564

Open
@mlin

Description

@mlin

On ingestion, the vector dimension is read from the array's dimension 1 domain:

if source_type == "TILEDB_SPARSE_ARRAY":
schema = tiledb.ArraySchema.load(source_uri)
size = np.int64(schema.domain.dim(0).domain[1]) + 1
dimensions = np.int64(schema.domain.dim(1).domain[1]) + 1
return size, dimensions, schema.attr(0).dtype

But the "current domain" should likely be used instead, if set (new feature).

Alternatively: the ingest method could take an optional dimensions arg to use instead of of the one detected by read_source_metadata, complementing the existing size arg.


[sc-62701]

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions