You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Brian Hulette (Jira)" <ji...@apache.org> on 2019/08/22 00:10:00 UTC
[jira] [Created] (BEAM-8030) Make VarIntCoder overflow behavior
consistent
Brian Hulette created BEAM-8030:
-----------------------------------
Summary: Make VarIntCoder overflow behavior consistent
Key: BEAM-8030
URL: https://issues.apache.org/jira/browse/BEAM-8030
Project: Beam
Issue Type: Improvement
Components: sdk-py-core
Reporter: Brian Hulette
Assignee: Brian Hulette
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.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)