Skip to content

Commit

Permalink
Merge pull request #160 from brooklyn-data/windows_paths
Browse files Browse the repository at this point in the history
Handle windows file paths by escaping backslash
  • Loading branch information
NiallRees committed Aug 5, 2022
2 parents 54e96ef + aa08ddc commit 7468a44
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion macros/upload_exposures.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'{{ exposure.type }}', {# type #}
'{{ tojson(exposure.owner) }}', {# owner #}
'{{ exposure.maturity }}', {# maturity #}
'{{ exposure.original_file_path }}', {# path #}
'{{ exposure.original_file_path | replace('\\', '\\\\') }}', {# path #}
'{{ exposure.description }}', {# description #}
'{{ exposure.url }}', {# url #}
'{{ exposure.package_name }}', {# package_name #}
Expand Down
2 changes: 1 addition & 1 deletion macros/upload_models.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'{{ model.name }}', {# name #}
'{{ tojson(model.depends_on.nodes) }}', {# depends_on_nodes #}
'{{ model.package_name }}', {# package_name #}
'{{ model.original_file_path }}', {# path #}
'{{ model.original_file_path | replace('\\', '\\\\') }}', {# path #}
'{{ model.checksum.checksum }}', {# checksum #}
'{{ model.config.materialized }}' {# materialization #}
)
Expand Down
2 changes: 1 addition & 1 deletion macros/upload_seeds.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'{{ seed.schema }}', {# schema #}
'{{ seed.name }}', {# name #}
'{{ seed.package_name }}', {# package_name #}
'{{ seed.original_file_path }}', {# path #}
'{{ seed.original_file_path | replace('\\', '\\\\') }}', {# path #}
'{{ seed.checksum.checksum }}' {# checksum #}
)
{%- if not loop.last %},{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion macros/upload_snapshots.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'{{ snapshot.name }}', {# name #}
'{{ tojson(snapshot.depends_on.nodes) }}', {# depends_on_nodes #}
'{{ snapshot.package_name }}', {# package_name #}
'{{ snapshot.original_file_path }}', {# path #}
'{{ snapshot.original_file_path | replace('\\', '\\\\') }}', {# path #}
'{{ snapshot.checksum.checksum }}', {# checksum #}
'{{ snapshot.config.strategy }}' {# strategy #}
)
Expand Down
2 changes: 1 addition & 1 deletion macros/upload_tests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'{{ test.name }}', {# name #}
'{{ tojson(test.depends_on.nodes) }}', {# depends_on_nodes #}
'{{ test.package_name }}', {# package_name #}
'{{ test.original_file_path }}', {# test_path #}
'{{ test.original_file_path | replace('\\', '\\\\') }}', {# test_path #}
'{{ tojson(test.tags) }}' {# tags #}
)
{%- if not loop.last %},{%- endif %}
Expand Down

0 comments on commit 7468a44

Please sign in to comment.