Skip to content

Commit

Permalink
(#2406) Fix for error in error handler for duped data tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbanin committed May 6, 2020
1 parent 7c916e9 commit fb5320f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Fixes
- When tracking is disabled due to errors, do not reset the invocation ID ([#2398](https://github.com/fishtown-analytics/dbt/issues/2398), [#2400](https://github.com/fishtown-analytics/dbt/pull/2400))
- Fix for logic error in compilation errors for duplicate data test names ([#2406](https://github.com/fishtown-analytics/dbt/issues/2406), [#2407](https://github.com/fishtown-analytics/dbt/pull/2407))

## dbt 0.17.0b1 (May 5, 2020)

Expand Down Expand Up @@ -2230,4 +2231,4 @@ profile: "side-project"
model-defaults:
....
```
```
2 changes: 2 additions & 0 deletions core/dbt/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,8 @@ def raise_duplicate_resource_name(node_1, node_2):
get_func = 'doc("{}")'.format(duped_name)
elif node_1.resource_type == NodeType.Test and 'schema' in node_1.tags:
return
else:
get_func = '"{}"'.format(duped_name)

raise_compiler_error(
'dbt found two resources with the name "{}". Since these resources '
Expand Down

0 comments on commit fb5320f

Please sign in to comment.