From 0e724497623b3896f160396ab18da1d1d0c70163 Mon Sep 17 00:00:00 2001 From: Nicolas ESTRADA Date: Wed, 2 Oct 2024 02:29:40 +0200 Subject: [PATCH] fix: UUIDs are not an unknown data type (logging) --- dlt/sources/sql_database/schema_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlt/sources/sql_database/schema_types.py b/dlt/sources/sql_database/schema_types.py index 2edb884d3f..f372de36e0 100644 --- a/dlt/sources/sql_database/schema_types.py +++ b/dlt/sources/sql_database/schema_types.py @@ -86,7 +86,7 @@ def sqla_col_to_column_schema( if hasattr(sqltypes, "Uuid") and isinstance(sql_t, sqltypes.Uuid): # we represent UUID as text by default, see default_table_adapter col["data_type"] = "text" - if isinstance(sql_t, sqltypes.Numeric): + elif isinstance(sql_t, sqltypes.Numeric): # check for Numeric type first and integer later, some numeric types (ie. Oracle) # derive from both # all Numeric types that are returned as floats will assume "double" type