Skip to content

Commit

Permalink
Merge pull request #61 from swanderz/hotfix_inverted_logic
Browse files Browse the repository at this point in the history
fix opposite logic
  • Loading branch information
jtcohen6 authored Jan 6, 2021
2 parents a3c78be + 4bcfedf commit 8ce844e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/plugins/sqlserver/create_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
create external table {{source(source_node.source_name, source_node.name)}} (
{% for column in columns %}
{# TODO set nullity based on schema tests?? #}
{%- set nullity = 'NULL' if 'not_null' in columns.tests else 'NOT NULL'-%}
{%- set nullity = 'NOT NULL' if 'not_null' in columns.tests else 'NULL'-%}
{{adapter.quote(column.name)}} {{column.data_type}} {{nullity}}
{{- ',' if not loop.last -}}
{% endfor %}
Expand Down

0 comments on commit 8ce844e

Please sign in to comment.