Open lamalex opened 2 months ago
Could you expand on this:
This is occurring on my workstation, as well as in our Dagster instance, but is not occurring in a Databricks workflow job (which are all using dbt-core 1.8.4, and dbt-databricks 1.8.3(or 4), and dbt-spark 1.8.0)
Specifically, what version do you see the issue with and which version do you not see the issue with? If the workflow job is the same version but doesn't have this issue, is the compute type used different?
i 100% copy pasta'd this from dbt-spark as was requests in https://github.com/dbt-labs/dbt-spark/issues/1086
cc: @amychen1776
Is this a new bug in dbt-spark?
Current Behavior
My DBT build is failing (in certain environments, have not been able to pinpoint what the difference is) due to column name capitalization mismatch from a
show grants
statement.In my dbt-spark library i've added a
print
on the grants table before columns are accessed by name, and I am seeing lower cased column names instead of upper-case (which does not match when I run this statement in databricks sql console!)if I change the column names in the adapter my models build successfully. This is occurring on my workstation, as well as in our Dagster instance, but is not occurring in a Databricks workflow job (which are all using dbt-core 1.8.4, and dbt-databricks 1.8.3(or 4), and dbt-spark 1.8.0).
Expected Behavior
not crash
Steps To Reproduce
run
dbt build --profile databricks --select tag:elementary --log-level debug
Relevant log output
Additional Context
No response