Skip to content

test(backends): have a variant of test_decimal_literal using a decimal literal with explicit scale #7930

Open
@kszucs

Description

          The ibis datatype of 
ibis.literal(decimal.Decimal("1.1"), type=dt.decimal).type()

is

Decimal(precision=None, scale=None, nullable=True)

so the literal is casted to DECIMAL and MySQL decides about scale and precision.

We should have another test case where we test a decimal literal with explicit scale and precision, and we expect uniform behaviour across all the backends.

Originally posted by @kszucs in #7926 (comment)

Metadata

Assignees

No one assigned

    Labels

    testsIssues or PRs related to tests

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions