Skip to content

Make VarIntCoder overflow behavior consistent #19696

Description

@damccorm

The fast version of OutputStream.write_var_int_64 (and thus VarIntCoder.encode) throws OverflowError for ints larger than 64 bits, but the slow version does not. We should make them both throw an error.

We may also want to add a write_var_int_32 that uses the same format, but will throw an error for ints larger than 32 bits, for use in RowCoder.

Imported from Jira BEAM-8030. Original Jira may contain additional context.
Reported by: bhulette.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions