Skip to content

VariantBuilder does not choose the tightest decimal type possible #3316

Description

@gszadovszky

Describe the bug, including details regarding any error messages, version, and platform.

The class VariantBuilder checks not only the precision of the related value but the scale as well to decide on the representation type (DECIMAL4 or DECIMAL8). This is not correct (according to the specification) since any variant decimal type can have the same range of [0, 38] scale.

Component(s)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions