You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifhasattr(sqltypes, "Uuid") andisinstance(sql_t, sqltypes.Uuid):
# we represent UUID as text by default, see default_table_adaptercol["data_type"] ="text"ifisinstance(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# and returned as decimals will assume "decimal" typeifsql_t.asdecimalisFalse:
col["data_type"] ="double"
After
ifhasattr(sqltypes, "Uuid") andisinstance(sql_t, sqltypes.Uuid):
# we represent UUID as text by default, see default_table_adaptercol["data_type"] ="text"elifisinstance(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# and returned as decimals will assume "decimal" typeifsql_t.asdecimalisFalse:
col["data_type"] ="double"
The text was updated successfully, but these errors were encountered:
dlt version
1.0.0
Describe the problem
Exactly what the title says.
Expected behavior
No annoying warnings log messages.
Steps to reproduce
Operating system
Linux
Runtime environment
Local
Python version
3.11
dlt data source
built-in sql_database
dlt destination
Google BigQuery
Other deployment details
No response
Additional information
The bug can be easily corrected by changing https://github.com/dlt-hub/dlt/blob/devel/dlt/sources/sql_database/schema_types.py#L89
Before
After
The text was updated successfully, but these errors were encountered: