Commit e154cdf
authored
Fix masked array deserialization overflow for integer dtypes
NumPy masked arrays default to a fill value of 999999, which cannot be
represented by small integer dtypes such as uint8 or uint16.
During distributed deserialization this raises a TypeError when
reconstructing the masked array and may cause tasks to hang indefinitely.
Ensure that fill values are cast safely to the target dtype, falling back
to NumPy's default fill value when necessary.1 parent 4fb4814 commit e154cdf
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
219 | 226 | | |
| 227 | + | |
0 commit comments