-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Handle empty strings in slugify macro * update changelog with PR number * fix slugify test * return empty string rather than none --------- Co-authored-by: Andrew Vaccaro <[email protected]>
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
with comparisons as ( | ||
select '{{ dbt_utils.slugify("") }}' as output, '' as expected | ||
union all | ||
select '{{ dbt_utils.slugify(None) }}' as output, '' as expected | ||
union all | ||
select '{{ dbt_utils.slugify("!Hell0 world-hi") }}' as output, 'hell0_world_hi' as expected | ||
union all | ||
select '{{ dbt_utils.slugify("0Hell0 world-hi") }}' as output, '_0hell0_world_hi' as expected | ||
) | ||
|
||
select * | ||
from comparisons | ||
where output != expected | ||
where output != expected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters