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
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
Invoking Column.from_description for a column that is a structured type fails
Expected Behavior
It should return a Column
Steps To Reproduce
from dbt.adapters.base.column import Column
Column.from_description("AUTO_JOINED_ACCOUNTS", "ARRAY(NUMBER(19,0))")
Relevant log output
dbt_common.exceptions.base.DbtRuntimeError: Runtime Error
Could not interpret data_type "ARRAY(NUMBER(19,0))": could not convert "NUMBER(19" to an integer
This is a big problem because methods like dbt_utils.get_filtered_columns_in_relation and adapter.get_columns_in_relation use this method and now cannot be used with tables with structured types
The text was updated successfully, but these errors were encountered:
jelmerk
changed the title
[Bug] Column.from_description crashes on structured typesd
[Bug] Column.from_description crashes on structured types
Jul 12, 2024
jelmerk
changed the title
[Bug] Column.from_description crashes on structured types
[Bug] Column.from_description crashes on structured type columns
Jul 12, 2024
Is this a new bug?
Current Behavior
Invoking Column.from_description for a column that is a structured type fails
Expected Behavior
It should return a Column
Steps To Reproduce
Relevant log output
Environment
Additional Context
This is a big problem because methods like
dbt_utils.get_filtered_columns_in_relation
andadapter.get_columns_in_relation
use this method and now cannot be used with tables with structured typesThe text was updated successfully, but these errors were encountered: