Skip to content

Commit

Permalink
feat: Allow multiple threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Mar 6, 2023
1 parent eb18e90 commit b903984
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jaffle_shop/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jaffle_shop:
user: "{{ env_var('USER_NAME') }}"
password: "{{ env_var('PASSWORD') }}"
schema: jaffle_shop
threads: 1
threads: 4
4 changes: 0 additions & 4 deletions dbt/include/firebolt/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
{% macro firebolt__list_schemas(database) %}
{# Return current schema. Name is a misnomer.
TODO: Should this actually return all schemas? #}
{% if target.threads > 1 %}
{{ exceptions.raise_compiler_error("Firebolt does not currently support "
"more than one thread.") }}
{% endif %}
{% call statement('list_schemas', fetch_result=True, auto_begin=False) %}

SELECT 'public' AS schema
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def dbt_profile_target():
return {
'type': 'firebolt',
'threads': 1,
'threads': 2,
'api_endpoint': os.getenv('API_ENDPOINT'),
'account_name': os.getenv('ACCOUNT_NAME'),
'database': os.getenv('DATABASE_NAME'),
Expand Down

0 comments on commit b903984

Please sign in to comment.