diff --git a/dbt/include/firebolt/macros/dbt_external_tables/create_external_table.sql b/dbt/include/firebolt/macros/dbt_external_tables/create_external_table.sql index af672d57..702cd489 100644 --- a/dbt/include/firebolt/macros/dbt_external_tables/create_external_table.sql +++ b/dbt/include/firebolt/macros/dbt_external_tables/create_external_table.sql @@ -135,7 +135,7 @@ CREDENTIALS = (AWS_KEY_ID = '{{credentials.aws_key_id}}' AWS_SECRET_KEY = '{{credentials.aws_secret_key}}') {%- endif %} {%- endif %} - {% if where_clause %} + {%- if where_clause %} WHERE {{ where_clause }} - {% endif %} + {%- endif %} {% endmacro %}