Skip to content

DM-49695: Allow hasattr to work for table for dunder properties if non-contiguous #777

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

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

timj
Copy link
Member

@timj timj commented Mar 25, 2025

Other property requests will fail.

attr = getattr(self.columns, name)
except Exception as e:
e.add_note(f"Error retrieving column attribute '{name}' from {type(self)}")
raise
Copy link
Member Author

Choose a reason for hiding this comment

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

I assume reraising this as an AttributeError would break things?

Copy link
Member

Choose a reason for hiding this comment

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

Correct. The non-contiguous case in particular should be its original exception type.

@timj timj merged commit 5a012ec into main Mar 25, 2025
2 checks passed
@timj timj deleted the tickets/DM-49695 branch March 25, 2025 23:37
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.

2 participants