-
Notifications
You must be signed in to change notification settings - Fork 265
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
test string casting only on first element #159
Conversation
The documentation is not available anymore as the PR was closed or merged. |
I think for #153 the matter is about checking the first non null element in a Sequence feature type, and not about checking the first element of a batch (though it can be complementary) This can be done inside _enforce_nested_string_type |
True, I guess it depends what is larger: samples ( |
LGTM. I think we could clarify in the docs that using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
(feel free to write some tests btw)
Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com>
This addresses #153: Instead of testing on every element of a batch we only test on the first. This should reduce the latency for adding batches.
This makes the assumption that the user would pass the same type in the rest of the batch which is a fair one IMO.