Open ShaneMazur opened 2 months ago
Thanks for reporting, will investigate
Need to reopen the issue. I tried to implement the suggested fix and discovered that there is often sync latency between UC and Delta that causes the information_schema to be out of date. I can fix that issue by forcing sync, but only if the table is delta; The fix is more complicated that I originally implemented, so reopening this issue.
Describe the bug
Couldn't tell you the full impact of this bug but where I encountered it was while using
on_schema_change="sync_all_columns"
.Basically the bug led to truncated results that feed queries involved in handling alter statements when there are data type changes in a dataset.
Current Behaviour
This is because running the below truncates the data types
Truncated field example using
DESCRIBE EXTENDED
Requested Behaviour
Ideally dbt databricks instead uses the below to acquire that information as it does not truncate data types
Steps To Reproduce
dbt-databricks
that looks up the datatype of that field viaget_columns_in_relation()
Expected Behaviour
dbt-databricks
that looks up the datatype of that field viaget_columns_in_relation()
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
Additional context