[CT-706] Consolidate data type methods in adapter interface #5317
Labels
Team:Adapters
Issues designated for the adapter area of the code
tech_debt
Behind-the-scenes changes, with little direct impact on end-user functionality
utils
Cross-database building blocks
Placeholder ticket for further investigation down the line, prompted by larger initiative for moving
dbt_utils
functionality intodbt-core
+ plugins.There are three ways we encode data types today, and make them available to users / adapter maintainers:
dbt_utils.type_*
macrosColumn
class type translationagate
type conversion methods, which translate agate's inferred types into each database's actual type systemI'd like to see us reconcile and consolidate those data type definitions as much as possible:
text
,number
,boolean
,datetime
,date
,time
)translate_type
, extensible/overridable for each adapter. This would translate between our standard types, and each database's type system.As a first pass, I'm working to rewrite the
dbt_utils.type_*
macros to useColumn.translate_type
instead: dbt-labs/dbt-utils#598, dbt-labs/dbt-utils#586The text was updated successfully, but these errors were encountered: