Skip to content

AttributeError: 'Aggregation' object has no attribute 'label_index' #2186

@joshhopkins

Description

@joshhopkins

It would be great if aggregation supported dimension labels on both dense and sparse arrays, as it does multi_index.

Currently, the below throws AttributeError: 'Aggregation' object has no attribute 'label_index'

with tiledb.open(array_uri, "r") as A:
    q = A.query(attrs='', dims=['dim1'])

    # res = q.agg("sum").multi_index[[0,1]]

    res = q.agg("sum").label_index(["l"])[["l0", "l1"]]

    print(res)

Metadata

Metadata

Assignees

No one assigned

    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