-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Crash when dbt runs show grants
statement due to column name capitalization mismatch
#1086
Comments
…in grants table response Match case to column names returned rather than hardcoding. Fixes: dbt-labs#1086
…in grants table response Match case to column names returned rather than hardcoding. Fixes: dbt-labs#1086
@lamalex Can I confirm with you that you're using dbt-databricks and dbt-spark for your Databricks workflows? Is there a reason why you aren't just using dbt-databricks? |
@amychen1776 i am using dbt-databricks, but dbt-spark is a dependency of dbt-databricks |
@lamalex You're very correct here. However you're currently using dbt-databricks and the issue you're raising is in comparison to the Databricks interface. It would make the most sense to start with the Databricks team - since I can't transfer issues to repositories outside of my org, would you please open up an issue on the Databricks repo for them to take a look? |
@amychen1776 are you saying that although the code for this bug exists in dbt-spark, it's the dbt-databricks team who should be responsible for the fix? |
Yes - they can also open up issues and prs for this adapter as needed but for initial triage, it should fall to the dbt-databricks team first. Thank you for opening up the issue! |
@amychen1776 Is there something wrong with the PR i opened? I mean I’m not asking anyone else to fix it! |
@lamalex not at all! It's more I want to make sure Databricks is aware of this |
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: