Skip to content

Commit

Permalink
Merge pull request #406 from dbt-labs/fix/exposure-owner-name
Browse files Browse the repository at this point in the history
Handle single quote in owner name and update test
  • Loading branch information
dave-connors-3 authored Jan 4, 2024
2 parents 821c013 + b28a685 commit 303e4ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration_tests/models/marts/exposures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ version: 2

exposures:
- name: exposure_1
description: real_dashboard
description: real_dashboard with fun chars '\!@#
type: dashboard
url: dave.com/metrics
maturity: low
tags: ['proserv']
owner:
name: proserv
name: dave's davey
email: [email protected]

depends_on:
Expand Down
4 changes: 2 additions & 2 deletions macros/unpack/get_exposure_values.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
wrap_string_with_quotes(node.maturity),
wrap_string_with_quotes(node.package_name),
wrap_string_with_quotes(node.url),
wrap_string_with_quotes(node.owner.name),
wrap_string_with_quotes(node.owner.email),
wrap_string_with_quotes(dbt.escape_single_quotes(node.owner.name)),
wrap_string_with_quotes(dbt.escape_single_quotes(node.owner.email)),
wrap_string_with_quotes(node.meta | tojson)
]
%}
Expand Down

0 comments on commit 303e4ef

Please sign in to comment.