Samuel Garfield
12/07/2023, 6:05 PMRuntime Error in test <name of elementary volume anomalies test> (models/path/to/schema.yml)
PERMISSION_DENIED: User does not have CREATE TABLE on Schema 'production.dbt_observability'
This throws an error and is unexpected because the CI job is not configured to write to the production catalog (it instead writes to a ci catalog) and does not have permissions to do so. No other models or tests encounter an error like this or attempt to write to production.
Strangely this was working without issue before several days ago.
A quick fix was adding a dbt run -s elementary invocation to our CI jobs, but this adds 2+ minutes of run time which is not ideal.
Packages:
dbt=1.6.9
upstream_prod 0.2.1
dbt_expectations 0.10.0
elementary 0.13.0
dbt_date 0.10.0
databricks=1.6.7Maayan Salom
12/10/2023, 3:28 PMSamuel Garfield
12/14/2023, 9:27 PMSamuel Garfield
12/14/2023, 9:27 PMSamuel Garfield
12/14/2023, 9:36 PMSamuel Garfield
12/14/2023, 9:37 PMdbt run -s elementary with every CI job runOfek Weiss
01/08/2024, 8:02 AMSamuel Garfield
01/09/2024, 9:43 PMhow did you configure the CI job exactlydbt Cloud Env: Run in a deployment environment named
Github
Catalog is set to ci
Schema is set to git_pr
Deployment type is set to General (and not Production)
Job:
Triggered by pull request turned on
Set up using the official guide here via the official Github integration
Defer to production turned on
Use custom environment variables so all runs are executed on a separate CI databricks SQL warehouse
Target name set to ci
how does it differ from the production jobProduction jobs which behave as expected are run in our production dbt Cloud Env: Deployment type is set to
Production (and not General)
Catalog is set to production
Schema is set to dbtOfek Weiss
02/04/2024, 2:52 PMdefer to production, i'm not sure exactly why, but it causes elementary to be confused as to which relation it should be uploading its artifacts.
Does running dbt run -s elementary resolve this completely? this might help me figure out the cause