-
Notifications
You must be signed in to change notification settings - Fork 223
Add CI job to roundtrip avro over pyspark #733
Comments
Seem like we're missing some Decimal Type. Can I add it ?
|
Thank you! Note that we have something similar in reading the parquet implementation that we may use - I think it uses an equivalent encoding. |
The deserialize part is complete, however, the write part seem tricky. What would you like to write, public byte[] toByteArray() {
int byteLen = bitLength()/8 + 1;
byte[] byteArray = new byte[byteLen];
for (int i=byteLen-1, bytesCopied=4, nextInt=0, intIndex=0; i>=0; i--) {
if (bytesCopied == 4) {
nextInt = getInt(intIndex++);
bytesCopied = 1;
} else {
nextInt >>>= 8;
bytesCopied++;
}
byteArray[i] = (byte)nextInt;
}
return byteArray;
} |
So that we can increase our confidence that our implementation is correct.
The text was updated successfully, but these errors were encountered: