Details
-
Bug
-
Status: Open
-
P3
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The JVM RowCoder strips trailing 0s from the null-value bitmap, while both python and go expect all bits to be present in the encoded bitmap. This causes index-out-of-range errors when trying to decode a row encoded on the JVM in other languages in some circumstances.
For example, given a Row with 10 nullable fields, if the first 8 are null and the last two are set, the row will fail to decode in python, because the nullable bitmap will only have 1 byte, but the python coder expects 2.
As discussed in the thread, the best solution here is probably to change the python (and go) coders to accept truncated nullable bitmaps.
More discussion here: