Skip to content

Commit

Permalink
fix(clickhouse): support Date32 database type (#9509)
Browse files Browse the repository at this point in the history
Add missing support for ClickHouse Date32 type.
  • Loading branch information
cpcloud authored Jul 3, 2024
1 parent 21ef0a6 commit efa6fb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ibis/backends/clickhouse/tests/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def test_array_discovery_clickhouse(con):
),
id="nested",
),
param("Date32", dt.Date(nullable=False), id="date32"),
param("DateTime", dt.Timestamp(scale=0, nullable=False), id="datetime"),
param(
"DateTime('Europe/Budapest')",
Expand Down
1 change: 1 addition & 0 deletions ibis/backends/sql/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
typecode.BOOLEAN: dt.Boolean,
typecode.CHAR: dt.String,
typecode.DATE: dt.Date,
typecode.DATE32: dt.Date,
typecode.DOUBLE: dt.Float64,
typecode.ENUM: dt.String,
typecode.ENUM8: dt.String,
Expand Down

0 comments on commit efa6fb7

Please sign in to comment.