TypedBytesTableOutputFormat uses TypedBytesWritable.getBytes() for retrieving the row key. However this method returns the whole byte array, for which the data is only valid between 0 and getLength() - 1 and not for the whole length of the returned byte array. Furthermore it returns also the bytes added by the typedbytes protocol.
This causes TypedBytesTableOutputFormat to store the bytes \x03\x00\x00\x00\x01\x00\x00 for a yielded key int(1).
However, I would expect \x01 to be used as row key in this case.
TypedBytesTableOutputFormat usesTypedBytesWritable.getBytes()for retrieving the row key. However this method returns the whole byte array, for which the data is only valid between 0 andgetLength()- 1 and not for the whole length of the returned byte array. Furthermore it returns also the bytes added by the typedbytes protocol.This causes
TypedBytesTableOutputFormatto store the bytes\x03\x00\x00\x00\x01\x00\x00for a yielded keyint(1).However, I would expect
\x01to be used as row key in this case.