Skip to content

Commit 73f56da

Browse files
Fix dbt-athena-community version constraints
- Use latest dbt-athena-community when running with latest dbt versions - Fix conflicting version constraints that caused pip install failures - Maintain compatibility for dbt 1.8.0 with athena-community>=1.7.0,<1.9.0 - Separate athena version logic from general dbt version constraint logic Co-Authored-By: Yosef Arbiv <[email protected]>
1 parent 5c8c2ba commit 73f56da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test-warehouse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
run:
107107
pip install${{ (inputs.dbt-version == 'latest_pre' && ' --pre') || '' }}
108108
"dbt-core${{ (!startsWith(inputs.dbt-version, 'latest') && format('=={0}', inputs.dbt-version)) || '' }}"
109-
"dbt-${{ (inputs.warehouse-type == 'databricks_catalog' && 'databricks') || (inputs.warehouse-type == 'spark' && 'spark[PyHive]') || (inputs.warehouse-type == 'athena' && 'athena-community>=1.7.0,<1.9.0') || inputs.warehouse-type }}${{ (!startsWith(inputs.dbt-version, 'latest') && format('<={0}', inputs.dbt-version)) || '' }}"
109+
"dbt-${{ (inputs.warehouse-type == 'databricks_catalog' && 'databricks') || (inputs.warehouse-type == 'spark' && 'spark[PyHive]') || (inputs.warehouse-type == 'athena' && (startsWith(inputs.dbt-version, 'latest') && 'athena-community' || 'athena-community>=1.7.0,<1.9.0')) || inputs.warehouse-type }}${{ (inputs.warehouse-type != 'athena' && !startsWith(inputs.dbt-version, 'latest') && format('<={0}', inputs.dbt-version)) || '' }}"
110110

111111
- name: Install Elementary
112112
run: pip install "./elementary[${{ (inputs.warehouse-type == 'databricks_catalog' && 'databricks') || inputs.warehouse-type }}]"

0 commit comments

Comments
 (0)