From 6a49f81f60bc62a251d12cd64217ed4ec02df996 Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 3 Sep 2024 17:05:17 +0200 Subject: [PATCH] fallback to timezone on duckdb with timestamp --- dlt/destinations/impl/duckdb/duck.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlt/destinations/impl/duckdb/duck.py b/dlt/destinations/impl/duckdb/duck.py index d5065f5bdd..5fa82f4977 100644 --- a/dlt/destinations/impl/duckdb/duck.py +++ b/dlt/destinations/impl/duckdb/duck.py @@ -1,4 +1,5 @@ import threading +import logging from typing import ClassVar, Dict, Optional from dlt.common.destination import DestinationCapabilitiesContext @@ -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: