-
-
Notifications
You must be signed in to change notification settings - Fork 327
Fix structured arrays that contain objects #806 #813
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
Conversation
* Ensures that the fill value of structured arrays that contain objects is encoded using object_codec.
Sure! Thanks! will take a look tomorrow morning hopefully that's quick enough. |
Definitely! Cheers. |
Thanks @joshmoore! Indeed this pull request is a more complete version of #702 . The latter fixes part of the problem, but the fill_value still needs to be encoded by the object_codec to fix the issue for structured arrays. |
Don't specify protocol: makes unit tests pass in python3.7 N5 doesn't support object codecs
The last patch fixes up some failing unit tests; the remaining unit test failures are not due to this patch. They also appear against the master branch. |
Failures were due to fsspec/s3fs#513 ; ready for retesting with #812 merged. |
Codecov Report
@@ Coverage Diff @@
## master #813 +/- ##
=======================================
Coverage 99.94% 99.94%
=======================================
Files 31 31
Lines 10609 10680 +71
=======================================
+ Hits 10603 10674 +71
Misses 6 6
|
@joshmoore there is a linting error that is due to this pr; it's purely cosmetic though (i.e. it's an error condition that will not show up unless encode_fill_value/decode_fill_value are called directly), but I'll quickly get together a fix. |
Explicitly handle an error condition that can only happen if encode_fill_value or decode_fill_value are directly called.
Pushed an attempted codecov fix. Feel free to adapt. |
Thanks @joshmoore your changes look good. I'm confused about the linting reported by the test suite above: |
Pushed a suggested fix. (Really need to turn on pre-commit for this repo.) |
Green! Is there anyone familiar with object codec'ing that would like to take a look at this? |
With thanks to @ombschervister
All green! Thanks @joshmoore! Do you know when this might be merged? |
Bumped the release notes to point to the (imminent!) 2.9.4. Any last thoughts from the community? |
Didn't receive any objections over the weekend. Releasing. |
is encoded using object_codec.
TODO: