Skip to content

Enhancement request for ClickHouse targets: Be able to specify the custom numeric precision and scale for mirrors #3336

@konsta-danyliuk

Description

@konsta-danyliuk

Current behaviour

  • PeerDBClickHouseScale is hard-coded as 38.
    PeerDBClickHouseScale = 38
  • When one tries to get a Postgres unbounded numeric column into ClickHouse, it is converted into Decimal(78, 38) and a user has no control over it.
  • This may be a problem when ingesting large numbers from unbounded numeric Postgres columns.

Suggested behaviour

  • Add an option to configure precision and scale for the unbounded numeric Postgres columns at the mirror creation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions