Skip to content
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

Handle non-English Snowflake error message for non-existing schemas #840

Merged
merged 10 commits into from
Nov 20, 2024
3 changes: 2 additions & 1 deletion dbt/adapters/snowflake/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def list_relations_without_caching(self, schema_relation: SnowflakeRelation) ->
# if the schema doesn't exist, we just want to return.
# Alternatively, we could query the list of schemas before we start
# and skip listing the missing ones, which sounds expensive.
if "Object does not exist" in str(exc):
# The error messages are different in English and Japanese, So need each handling.
if "Object does not exist" in str(exc) or "オブジェクトは存在しない" in str(exc):
pei0804 marked this conversation as resolved.
Show resolved Hide resolved
return []
raise

Expand Down