dbt-labs / dbt-spark

dbt-spark contains all of the code enabling dbt to work with Apache Spark and Databricks
https://getdbt.com
Apache License 2.0
395 stars 221 forks source link

ADAP-473: [Bug] Tables are not properly refreshing for non-admin users #725

Closed mikealfare closed 1 year ago

mikealfare commented 1 year ago

Is this a new bug in dbt-spark?

Current Behavior

When a non-admin user is used to build a table model which already exists, this model is not refreshed in some scenarios. The account fails to recognize that the model already exists, hence it fails to drop it before recreating it. This is happening in Databricks.

Expected Behavior

A non-admin user should be able to be used as the build account and tables should refresh successfully.

Steps To Reproduce

  1. Create a table model
  2. Run dbt twice

Relevant log output

No response

Environment

- OS: MacOS 13
- Python: py38
- dbt-core: 1.5.0b4
- dbt-spark: 1.5.0b4

Additional Context

No response