Skip to content

TypedBytesTableOutputFormat alters row key #2

@luk

Description

@luk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions