Skip to content

Commit

Permalink
feat(clickhouse): support pyarrow decimal types
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Apr 13, 2023
1 parent b4ba6b9 commit 7472dd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ibis/backends/clickhouse/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,8 @@ def _(ty: dt.Timestamp) -> str:
if (timezone := ty.timezone) is not None:
return f"DateTime64({scale:d}, {timezone})"
return f"DateTime64({scale:d})"


@serialize_raw.register(dt.Decimal)
def _(ty: dt.Decimal) -> str:
return f"Decimal({ty.precision}, {ty.scale})"

0 comments on commit 7472dd5

Please sign in to comment.