Skip to content

Commit

Permalink
fallback to timezone on duckdb with timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Sep 3, 2024
1 parent 60039e5 commit 6a49f81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dlt/destinations/impl/duckdb/duck.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import threading
import logging
from typing import ClassVar, Dict, Optional

from dlt.common.destination import DestinationCapabilitiesContext
Expand Down Expand Up @@ -92,10 +93,9 @@ def to_db_datetime_type(
precision = column.get("precision")

if timezone and precision is not None:
raise TerminalValueError(
logging.warn(
f"DuckDB does not support both timezone and precision for column '{column_name}' in"
f" table '{table_name}'. To resolve this issue, either set timezone to False or"
" None, or use the default precision."
f" table '{table_name}'. Will default to timezone."
)

if timezone:
Expand Down

0 comments on commit 6a49f81

Please sign in to comment.