File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,16 @@ install-dev-dbt-%:
3636 if [ " $$ version" = " 1.10.0" ]; then \
3737 echo " Applying special handling for dbt 1.10.0" ; \
3838 $(SED_INPLACE ) -E ' s/"(dbt-core)[^"]*"/"\1~=' " $$ version" ' "/g' pyproject.toml; \
39- $(SED_INPLACE ) -E ' s/"(dbt-(bigquery|duckdb|snowflake|athena-community|clickhouse|databricks|redshift|trino))[^"]*"/"\1"/g' pyproject.toml; \
39+ $(SED_INPLACE ) -E ' s/"(dbt-(bigquery|duckdb|snowflake|athena-community|clickhouse|redshift|trino))[^"]*"/"\1"/g' pyproject.toml; \
40+ $(SED_INPLACE ) -E ' s/"(dbt-databricks)[^"]*"/"\1~=' " $$ version" ' "/g' pyproject.toml; \
4041 else \
4142 echo " Applying version $$ version to all dbt packages" ; \
4243 $(SED_INPLACE ) -E ' s/"(dbt-[^"><=~!]+)[^"]*"/"\1~=' " $$ version" ' "/g' pyproject.toml; \
4344 fi ; \
45+ if printf ' %s\n' " $$ version" | awk -F. ' { if ($$1 == 1 && (($$2 >= 3 && $$2 <= 5) || $$2 == 10)) exit 0; exit 1 }' ; then \
46+ echo " Applying numpy<2 constraint for dbt $$ version" ; \
47+ $(SED_INPLACE ) ' s/"numpy"/"numpy<2"/g' pyproject.toml; \
48+ fi ; \
4449 $(MAKE ) install-dev; \
4550 if [ " $$ version" = " 1.6.0" ]; then \
4651 echo " Applying overrides for dbt 1.6.0" ; \
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ dev = [
5757 " beautifulsoup4" ,
5858 " clickhouse-connect" ,
5959 " cryptography<46.0.0" ,
60- " databricks-sql-connector" ,
60+ # `0.66.0` release contains a breaking change for dbt-databricks
61+ " databricks-sdk<0.66.0" ,
62+ # Older releases of the connector have issues with previous versions of dbt-databricks
63+ " databricks-sql-connector==4.1.3" ,
6164 " dbt-bigquery" ,
6265 " dbt-core" ,
6366 " dbt-duckdb>=1.7.1" ,
@@ -76,6 +79,7 @@ dev = [
7679 " google-cloud-bigquery-storage" ,
7780 " httpx" ,
7881 " mypy~=1.13.0" ,
82+ " numpy" ,
7983 " pandas-stubs" ,
8084 " pre-commit" ,
8185 " psycopg2-binary" ,
You can’t perform that action at this time.
0 commit comments