Skip to content

Commit efa6fb7

Browse files
authored
fix(clickhouse): support Date32 database type (#9509)
Add missing support for ClickHouse Date32 type.
1 parent 21ef0a6 commit efa6fb7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ibis/backends/clickhouse/tests/test_datatypes.py

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def test_array_discovery_clickhouse(con):
244244
),
245245
id="nested",
246246
),
247+
param("Date32", dt.Date(nullable=False), id="date32"),
247248
param("DateTime", dt.Timestamp(scale=0, nullable=False), id="datetime"),
248249
param(
249250
"DateTime('Europe/Budapest')",

ibis/backends/sql/datatypes.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
typecode.BOOLEAN: dt.Boolean,
2121
typecode.CHAR: dt.String,
2222
typecode.DATE: dt.Date,
23+
typecode.DATE32: dt.Date,
2324
typecode.DOUBLE: dt.Float64,
2425
typecode.ENUM: dt.String,
2526
typecode.ENUM8: dt.String,

0 commit comments

Comments
 (0)