Rewrite type_*
macros to use built-in adapter capabilities
#598
Labels
enhancement
New feature or request
type_*
macros to use built-in adapter capabilities
#598
Split out from #577 + #597
Describe the feature
In
dbt-utils
: Rewrite the type_* macros to use each adapter'sColumn
object. Think about whether it makes sense to push these macro into dbt-core as well, as a sugarier interface over the underlying Python methods.Potential follow-up work in core + plugins:
Column
types as needed (e.g. [CT-636] [Bug] Postgres unlimited varchar default to varchar(256) dbt-core#5238)agate
type conversion methods withColumn
class type translationDescribe alternatives you've considered
Leave current
dbt_utils.type_*
macros as they areAdditional context
Yes, database-specific!
Who will this benefit?
dbt_utils.type_*
macros (their own model SQL / installed package code) andColumn
-object behavior built into dbt's handling for, e.g., column type expansion in incremental models. It'd be better if these both pulled from the same set of information.Are you interested in contributing this feature?
Yes!
The text was updated successfully, but these errors were encountered: