Skip to content

Fix view_attr not being respected by __getitem__ and subarray#2139

Merged
kounelisagis merged 5 commits intomainfrom
agis/respect-view_attr
Jan 28, 2025
Merged

Fix view_attr not being respected by __getitem__ and subarray#2139
kounelisagis merged 5 commits intomainfrom
agis/respect-view_attr

Conversation

@kounelisagis
Copy link
Member

@kounelisagis kounelisagis commented Jan 10, 2025

This PR fixes an issue where the attr argument in the Array.open method (internally stored as view_attr) was not respected during query operations. Consequently, the Array.query method ignored the specified attribute(s) and returned all attributes instead. The issue has been resolved by updating the __getitem__ and subarray methods of both Sparse and Dense Arrays.


[sc-61659]

@kounelisagis kounelisagis requested a review from ihnorton January 10, 2025 22:10
@kounelisagis kounelisagis force-pushed the agis/respect-view_attr branch from 594b747 to ab4ac0a Compare January 14, 2025 15:36
@kounelisagis kounelisagis changed the title Correct Query to respect view_attr Fix view_attr not being respected by __getitem__ and subarray Jan 14, 2025
Copy link

@nguyenv nguyenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

kounelisagis and others added 2 commits January 28, 2025 01:36
Co-authored-by: nguyenv <vivian@tiledb.com>
Co-authored-by: nguyenv <vivian@tiledb.com>
@kounelisagis kounelisagis merged commit 9638128 into main Jan 28, 2025
32 checks passed
@kounelisagis kounelisagis deleted the agis/respect-view_attr branch January 28, 2025 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants