-
Notifications
You must be signed in to change notification settings - Fork 151
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
[ELE-1119] dbt_columns
and filtered_information_schema_tables
models fails on large amount of schemas
#945
Comments
dbt_columns
model fails on large amount of schemasdbt_columns
model fails on large amount of schemas
Another case. |
dbt_columns
model fails on large amount of schemasdbt_columns
and filtered_information_schema_tables
models fails on large amount of schemas
I think I may have found the problem area and will report it. 00:32:12 Database Error in model filtered_information_schema_columns (models/edr/metadata_store/filtered_information_schema_columns.sql)
00:32:12 002003 (02000): SQL compilation error:
00:32:12 Database '"snowflake"' does not exist or not authorized.
00:32:12
00:32:12 Database Error in model dbt_columns (models/edr/dbt_artifacts/dbt_columns.sql)
00:32:12 002003 (02000): SQL compilation error:
00:32:12 Database '"snowflake"' does not exist or not authorized. It got error to SQL. select count(*)
from "snowflake".INFORMATION_SCHEMA.schemata
where upper(schema_name) = upper('account_usage')
and upper(catalog_name) = upper('snowflake')
/* {"app": "dbt", "dbt_snowflake_query_tags_version": "2.0.1", "dbt_version": "1.5.2", "project_name": "dbt", "target_name": "dev", "target_database": "TEST", "target_schema": "public", "invocation_id": "0f2b2213-d6ab-46b6-97d0-54212036b157", "node_name": "filtered_information_schema_columns", "node_alias": "filtered_information_schema_columns", "node_package_name": "elementary", "node_original_file_path": "models/edr/metadata_store/filtered_information_schema_columns.sql", "node_database": "ELEMENTARY", "node_schema": "elementary", "node_id": "model.elementary.filtered_information_schema_columns", "node_resource_type": "model", "node_tags": ["elementary"], "node_refs": [], "materialized": "view"} */ The error is caused by the "snowflake" part. select count(*)
from "SNOWFLAKE".INFORMATION_SCHEMA.schemata
where upper(schema_name) = upper('account_usage')
and upper(catalog_name) = upper('snowflake') If we can better adjust how Database is specified, the problem seems to be resolved. |
I have solved this problem. diff --git a/dbt/dbt_project.yml b/dbt/dbt_project.yml
--- a/dbt/dbt_project.yml
+++ b/dbt/dbt_project.yml
@@ -46,7 +46,7 @@ on-run-end:
# Snowflake Configs
# ======
quoting:
- database: true
+ database: false
identifier: false
schema: false |
Another case. I would like to create just the empty schema of |
Hi @yu-iskw, our main use for here's our plan for solving this issue:
Therefore, this model is not going to exist and removing it will by nature solve your issue. |
Hi @elongl , thank you for sharing the plan. That sounds good. We would like to initialize and migrate elementary's schema without accessing data of our dbt models using |
I am also having this issue with the dbt_columns model due to a lowercase db name. I updated the quoting in the project.yml file, but this doesn't work because it breaks for a different db name.
|
I'm closing since these models no longer exist in Elementary so I tend to think these issue are irrelevant |
https://elementary-community.slack.com/archives/C02CTC89LAX/p1686855852542619
ELE-1119
The text was updated successfully, but these errors were encountered: