Skip to content

Add back readUnsignedLeb128 in ClickHouseRowBinaryInputStream #710

@vonnagy

Description

@vonnagy

When using the ClickHouseRowBinaryInputStream we used to be able to manually read string, arrays, etc by calling readUnsignedLeb128 to get the length and then iterating through the elements. It was removed with version 0.3.0 (commit# 074a030). See here for the change. Since the ClickHouseRowBinaryInputStream class interacts with the private instance of DataInputStream there is no current access to the information.

The following code could be added back.

public int readUnsignedLeb128() throws IOException {
    return Utils.readUnsignedLeb128(in);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions