From df5478995eef27310785cd203cfb2c4f91928e51 Mon Sep 17 00:00:00 2001 From: Nicolas Estrada Date: Wed, 2 Oct 2024 13:30:18 +0200 Subject: [PATCH] fix: UUIDs are not an unknown data type (logging) (#1914) Co-authored-by: Nicolas ESTRADA --- 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