Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-2773: [C] Add decimal logical schema #2891

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on May 8, 2024

  1. AVRO-2773: [C] Add decimal logical schema

    This adds a new AVRO_DECIMAL avro_type_t and uses the existing getters and
    setters for value objects: decimal objects are encoded as either bytes or
    fixed. For the deprecated datum api, decimal schemas decay to their underlying
    bytes or fixed schema: i.e. the legacy api doesn't support logical schemas.
    
    Although this patch adds decimal logical schema support, it does not provide
    any decimal support at the "api level": decimal objects are still read and
    written as the underlying bytes and fixed objects they were previously.
    
    Signed-off-by: Sahil Kang <sahil.kang@asilaycomputing.com>
    Signed-off-by: Sahil Kang <sahilkang@google.com>
    SahilKang committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c2d7509 View commit details
    Browse the repository at this point in the history
  2. AVRO-2773: [C] Add get_decimal and set_decimal

    This patch adds "api level" support for decimal objects: these functions allow
    manipulating decimal objects at a higher-level than the underlying bytes and
    fixed objects.
    
    Signed-off-by: Sahil Kang <sahil.kang@asilaycomputing.com>
    Signed-off-by: Sahil Kang <sahilkang@google.com>
    SahilKang committed May 8, 2024
    Configuration menu
    Copy the full SHA
    30da03a View commit details
    Browse the repository at this point in the history