Skip to content

Show and log a warning when schema contains '.'.#221

Merged
ueshin merged 5 commits into
databricks:mainfrom
ueshin:warn_on_schema
Oct 27, 2022
Merged

Show and log a warning when schema contains '.'.#221
ueshin merged 5 commits into
databricks:mainfrom
ueshin:warn_on_schema

Conversation

@ueshin
Copy link
Copy Markdown
Contributor

@ueshin ueshin commented Oct 27, 2022

Description

Shows and logs a warning when schema contains '.'.

As a side work, trying to help more cases where schema contains '.' in list_relations_without_caching.

Copy link
Copy Markdown
Collaborator

@allisonwang-db allisonwang-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

Comment thread dbt/adapters/databricks/connections.py Outdated
Comment thread dbt/adapters/databricks/connections.py Outdated
ueshin and others added 3 commits October 27, 2022 15:49
Co-authored-by: allisonwang-db <allison.wang@databricks.com>
Co-authored-by: allisonwang-db <allison.wang@databricks.com>
@ueshin
Copy link
Copy Markdown
Contributor Author

ueshin commented Oct 27, 2022

Thanks! merging.

@ueshin ueshin merged commit 587c456 into databricks:main Oct 27, 2022
@ueshin ueshin deleted the warn_on_schema branch October 27, 2022 23:20
ueshin added a commit that referenced this pull request Oct 27, 2022
### Description

Shows and logs a warning when schema contains `'.'`.

As a side work, trying to help more cases where schema contains `'.'` in `list_relations_without_caching`.

Co-authored-by: allisonwang-db <allison.wang@databricks.com>
ueshin added a commit that referenced this pull request Oct 27, 2022
### Description

Shows and logs a warning when schema contains `'.'`.

As a side work, trying to help more cases where schema contains `'.'` in `list_relations_without_caching`.

Co-authored-by: allisonwang-db <allison.wang@databricks.com>
ueshin added a commit that referenced this pull request Oct 27, 2022
### Description

Shows and logs a warning when schema contains `'.'`.

As a side work, trying to help more cases where schema contains `'.'` in `list_relations_without_caching`.

Co-authored-by: allisonwang-db <allison.wang@databricks.com>
ueshin added a commit that referenced this pull request Nov 4, 2022
…se letters. (#224)

### Description

Partially reverts #221 to fix the case where `schema` config contains uppercase letters.

```
Compilation Error in model test (models/test.sql)
  When searching for a relation, dbt found an approximate match. Instead of guessing
  which relation to use, dbt will move on. Please delete DBT_TEST.test, or rename it to be less ambiguous.
  Searched for: dbt_test.test
  Found: DBT_TEST.test

  > in macro load_cached_relation (macros/adapters/relation.sql)
  > called by macro load_relation (macros/adapters/relation.sql)
  > called by macro materialization_incremental_databricks (macros/materializations/incremental/incremental.sql)
  > called by model test (models/test.sql)
```
ueshin added a commit that referenced this pull request Nov 4, 2022
…se letters. (#224)

### Description

Partially reverts #221 to fix the case where `schema` config contains uppercase letters.

```
Compilation Error in model test (models/test.sql)
  When searching for a relation, dbt found an approximate match. Instead of guessing
  which relation to use, dbt will move on. Please delete DBT_TEST.test, or rename it to be less ambiguous.
  Searched for: dbt_test.test
  Found: DBT_TEST.test

  > in macro load_cached_relation (macros/adapters/relation.sql)
  > called by macro load_relation (macros/adapters/relation.sql)
  > called by macro materialization_incremental_databricks (macros/materializations/incremental/incremental.sql)
  > called by model test (models/test.sql)
```
ueshin added a commit that referenced this pull request Nov 4, 2022
…se letters. (#224)

### Description

Partially reverts #221 to fix the case where `schema` config contains uppercase letters.

```
Compilation Error in model test (models/test.sql)
  When searching for a relation, dbt found an approximate match. Instead of guessing
  which relation to use, dbt will move on. Please delete DBT_TEST.test, or rename it to be less ambiguous.
  Searched for: dbt_test.test
  Found: DBT_TEST.test

  > in macro load_cached_relation (macros/adapters/relation.sql)
  > called by macro load_relation (macros/adapters/relation.sql)
  > called by macro materialization_incremental_databricks (macros/materializations/incremental/incremental.sql)
  > called by model test (models/test.sql)
```
ueshin added a commit that referenced this pull request Nov 4, 2022
…se letters. (#224)

### Description

Partially reverts #221 to fix the case where `schema` config contains uppercase letters.

```
Compilation Error in model test (models/test.sql)
  When searching for a relation, dbt found an approximate match. Instead of guessing
  which relation to use, dbt will move on. Please delete DBT_TEST.test, or rename it to be less ambiguous.
  Searched for: dbt_test.test
  Found: DBT_TEST.test

  > in macro load_cached_relation (macros/adapters/relation.sql)
  > called by macro load_relation (macros/adapters/relation.sql)
  > called by macro materialization_incremental_databricks (macros/materializations/incremental/incremental.sql)
  > called by model test (models/test.sql)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants