Skip to content

Commit afec213

Browse files
authored
fix(databricks): limiting pyarrow version to meet requirements (#6142)
Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
1 parent 7c1e4e4 commit afec213

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ bigquery-test: guard-BIGQUERY_KEYFILE engine-bigquery-install
238238
pytest -n auto -m "bigquery" --reruns 3 --junitxml=test-results/junit-bigquery.xml
239239

240240
databricks-test: guard-DATABRICKS_CATALOG guard-DATABRICKS_SERVER_HOSTNAME guard-DATABRICKS_HTTP_PATH guard-DATABRICKS_CONNECT_VERSION engine-databricks-install
241-
$(PIP) install 'databricks-connect==${DATABRICKS_CONNECT_VERSION}'
241+
# Connect 15.3.x requires numpy<2 and pyarrow>=4 (no upper bound). Cap PyArrow
242+
# in the same resolve that downgrades NumPy, or PyArrow 25+ is left installed
243+
# and cannot be imported.
244+
$(PIP) install 'databricks-connect==${DATABRICKS_CONNECT_VERSION}' 'pyarrow<25'
242245
pytest -n auto -m "databricks" --reruns 3 --junitxml=test-results/junit-databricks.xml
243246

244247
redshift-test: guard-REDSHIFT_HOST guard-REDSHIFT_USER guard-REDSHIFT_PASSWORD guard-REDSHIFT_DATABASE engine-redshift-install

0 commit comments

Comments
 (0)