Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix view_attr not being respected by __getitem__ and subarray #2139

Merged
merged 5 commits into from
Jan 28, 2025

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
Collaborator

@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!

tiledb/sparse_array.py Outdated Show resolved Hide resolved
tiledb/dense_array.py Outdated Show resolved Hide resolved
@kounelisagis kounelisagis merged commit 9638128 into main Jan 28, 2025
33 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