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

Move accessor length validation to serialization #333

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Jan 26, 2024

Closes #329

Currently we validate accessor length in _validate_accessor_length on the layer itself, but that's probably not able to dynamically validate all accessors, even those added by an extension. Instead, we can check during serialization that the length of the column is the same as the length of the table.

This additionally adds a test that accessor length validation is checked for extension accessors

@kylebarron kylebarron force-pushed the kyle/extension-accessor-validation branch from e074e89 to 30d485e Compare January 26, 2024 19:40
@kylebarron kylebarron enabled auto-merge (squash) January 26, 2024 19:40
@kylebarron kylebarron merged commit de30e82 into main Jan 26, 2024
5 checks passed
@kylebarron kylebarron deleted the kyle/extension-accessor-validation branch January 26, 2024 19:41
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.

Move accessor length validation to serialization step
1 participant