Skip to content

Implement dictGet dictGetOrDefault for Decimal #5343

Closed

Description

@golubev-ml

I suggest to create similar functions that exist for Integer and Float but for Decimal32, Decimal64 and Decimal128 for example dictGetDecimal32
https://clickhouse.yandex/docs/en/query_language/functions/ext_dict_functions/

I have a dictionary with Decimal32 field in it, but when I try to get this field from the dictionary I can't

ClickHouse client version 19.4.0.49.

select dictGetDecimal32('dictionary', 'column', id)
Code: 46. DB::Exception: Unknown function dictGetDecimal32. Maybe you meant: ['dictGetFloat32','toDecimal32']. 

select dictGetFloat32('dictionary', 'column', id)
Code: 53. DB::Exception: service: type mismatch: attribute price has type Decimal32.

Activity

  1. added
    bug
    on May 20, 2019
  2. added
    comp-dictionary
    on May 20, 2019
  3. added and removed
    bug
    on May 20, 2019
  4. changed the title [-]Decimal32 [/-] [+]Implement dictGetDecimal[/+] on May 20, 2019
  5. self-assigned this
    on May 20, 2019
  6. 4ertus2 commented on May 20, 2019

    @4ertus2
    Contributor

    It's in our plans to implement dictGet functions for Decimals.

  7. 4ertus2 commented on May 23, 2019

    @4ertus2
    Contributor
  8. changed the title [-]Implement dictGetDecimal[/-] [+]Implement dictGet dictGetOrDefault[/+] on May 23, 2019
  9. changed the title [-]Implement dictGet dictGetOrDefault[/-] [+]Implement dictGet dictGetOrDefault for Decimal[/+] on May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

comp-dictionaryfeature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions