[Bug] Crash when dbt runs show grants statement due to column name capitalization mismatch #782
Open
2 tasks done
Labels
bug
Something isn't working
i 100% copy pasta'd this from dbt-spark as was requests in dbt-labs/dbt-spark#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
The text was updated successfully, but these errors were encountered: