Skip to content

Add Decimal type support to external Dictionary and Operators  #5483

Closed

Description

@SergioSafonov

As i understand, i can't use Decimal type as a attribute in External dictionaries and in operators (a * b as attribute_name). Only Int, UInt and Float as numeric types.
Why it does and it possible to add support Decimal type?

Activity

  1. 4ertus2 commented on May 30, 2019

    @4ertus2
    Contributor

    It's possible to use Decimals in dictionaries in master #5343
    What do you mean saying you cannot use Decimals in operators?

  2. added
    question
    st-need-info
    on May 30, 2019
  3. self-assigned this
    on May 30, 2019
  4. SergioSafonov commented on May 30, 2019

    @SergioSafonov
    Author

    Sorry, i'm just trying to multiply Decimal and Float values
    but i was confused about error report:

    Illegal types Decimal(18, 3) and Float64 of arguments of function multiply (version 19.5.3.8 (official build))

    and also i read about this in documentation about support of multiply operations only for all Int and UInt types and Float64 only (don't remember where).

  5. 4ertus2 commented on May 30, 2019

    @4ertus2
    Contributor

    It's expected behaviour. If you do need strict values you use Decimal. If you do not need strict values you use Floats. If you use both Float and Decimal it's not clear what result do you want: strict or not. You should explicitly cast one of arguments to say it.

  6. removed
    st-need-info
    on Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions