From f32b6e2c735a39c067d728d9ad5dc357066dea8c Mon Sep 17 00:00:00 2001 From: jared-rimmer Date: Thu, 25 May 2023 15:55:31 +0100 Subject: [PATCH] Add wide_number_mode to BigQuery all results columns --- macros/upload_exposures.sql | 2 +- macros/upload_models.sql | 2 +- macros/upload_seeds.sql | 2 +- macros/upload_snapshots.sql | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/macros/upload_exposures.sql b/macros/upload_exposures.sql index daa86fea..3aa74a29 100644 --- a/macros/upload_exposures.sql +++ b/macros/upload_exposures.sql @@ -70,7 +70,7 @@ '{{ exposure.package_name }}', {# package_name #} {{ tojson(exposure.depends_on.nodes) }}, {# depends_on_nodes #} {{ tojson(exposure.tags) }}, {# tags #} - parse_json('{{ tojson(exposure) | replace("\\", "\\\\") | replace("'", "\\'") | replace('"', '\\"') }}') {# all_results #} + parse_json('{{ tojson(exposure) | replace("\\", "\\\\") | replace("'", "\\'") | replace('"', '\\"') }}', wide_number_mode=>'round') {# all_results #} ) {%- if not loop.last %},{%- endif %} {%- endfor %} diff --git a/macros/upload_models.sql b/macros/upload_models.sql index 438d455b..e9785224 100644 --- a/macros/upload_models.sql +++ b/macros/upload_models.sql @@ -73,7 +73,7 @@ {{ tojson(model.tags) }}, {# tags #} parse_json('''{{ tojson(model.config.meta) }}'''), {# meta #} '{{ model.alias }}', {# alias #} - parse_json('{{ tojson(model) | replace("\\", "\\\\") | replace("'","\\'") | replace('"', '\\"') }}') {# all_results #} + parse_json('{{ tojson(model) | replace("\\", "\\\\") | replace("'","\\'") | replace('"', '\\"') }}', wide_number_mode=>'round') {# all_results #} ) {%- if not loop.last %},{%- endif %} {%- endfor %} diff --git a/macros/upload_seeds.sql b/macros/upload_seeds.sql index 61683f75..f256c4a1 100644 --- a/macros/upload_seeds.sql +++ b/macros/upload_seeds.sql @@ -64,7 +64,7 @@ '{{ seed.checksum.checksum }}', {# checksum #} parse_json('''{{ tojson(seed.config.meta) }}'''), {# meta #} '{{ seed.alias }}', {# alias #} - parse_json('{{ tojson(seed) | replace("\\", "\\\\") | replace("'","\\'") | replace('"', '\\"') }}') {# all_results #} + parse_json('{{ tojson(seed) | replace("\\", "\\\\") | replace("'","\\'") | replace('"', '\\"') }}', wide_number_mode=>'round') {# all_results #} ) {%- if not loop.last %},{%- endif %} {%- endfor %} diff --git a/macros/upload_snapshots.sql b/macros/upload_snapshots.sql index cac08abc..711d3a00 100644 --- a/macros/upload_snapshots.sql +++ b/macros/upload_snapshots.sql @@ -71,7 +71,7 @@ '{{ snapshot.config.strategy }}', {# strategy #} parse_json('''{{ tojson(snapshot.config.meta) }}'''), {# meta #} '{{ snapshot.alias }}', {# alias #} - parse_json('{{ tojson(snapshot) | replace("\\", "\\\\") | replace("'","\\'") | replace('"', '\\"') }}') {# all_results #} + parse_json('{{ tojson(snapshot) | replace("\\", "\\\\") | replace("'","\\'") | replace('"', '\\"') }}', wide_number_mode=>'round') {# all_results #} ) {%- if not loop.last %},{%- endif %} {%- endfor %}