Skip to content

Commit 596e668

Browse files
committed
Support partitioning by DATE or Date
1 parent 836dc9f commit 596e668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlalchemy_bigquery/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def _process_time_partitioning(
838838
field = time_partitioning.field
839839
if isinstance(
840840
table.columns[time_partitioning.field].type,
841-
sqlalchemy.sql.sqltypes.DATE,
841+
(sqlalchemy.sql.sqltypes.DATE, sqlalchemy.sql.sqltypes.Date),
842842
):
843843
return f"PARTITION BY {field}"
844844
elif isinstance(

0 commit comments

Comments
 (0)