Skip to content

Commit

Permalink
SQL linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning committed Feb 8, 2024
1 parent ae312bf commit 4fe2c52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cumulus_library/.sqlfluff
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ capitalisation_policy = upper


[sqlfluff:templater:jinja]
load_macros_from_path = cumulus_library/studies/core/core_templates
load_macros_from_path = cumulus_library/template_sql/shared_macros,cumulus_library/studies/core/core_templates

[sqlfluff:templater:jinja:context]
code_systems = ["http://snomed.info/sct", "http://hl7.org/fhir/sid/icd-10-cm"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CREATE TABLE {{ target_table }} AS (
code,
display
FROM system_{{ column_name }}_{{ loop.index0 }}
{{syntax.union_delineate(loop)}}
{{ syntax.union_delineate(loop) }}
{%- endfor %}
)
{%- if filter_priority -%},
Expand Down
2 changes: 2 additions & 0 deletions cumulus_library/template_sql/shared_macros/syntax.sql.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
UNION
{%- endif -%}
{%- endmacro -%}


0 comments on commit 4fe2c52

Please sign in to comment.