Commit 482c5f8
feat(PECOBLR-2328): bump databricks-sql-connector upper bound to <4.1.6 (#1363)
## Summary
- Bumps `databricks-sql-connector` upper bound from `<4.1.4` to
`<4.1.6`, allowing users to install connector `4.1.5`
- Connector `4.1.5` introduced
[`_respect_server_retry_after_header`](databricks/databricks-sql-python#756),
which users can now opt into via `connection_parameters` in
`profiles.yml`
## Context
Customers using `use_materialization_v2: true` experience duplicate rows
when the server returns HTTP 503 after already committing an INSERT. The
connector blindly retries, causing data to be written twice. With
`_respect_server_retry_after_header: true`, retries only occur when the
server explicitly sends a `Retry-After` header, preventing duplicate
writes from infrastructure-level 503s.
## Test plan
- [x] All 744 unit tests pass (`hatch run unit`)
- [x] E2E verification with a dummy dbt project against UC SQL endpoint:
- `dbt debug` + `dbt run` succeed with default profile (connector
default `False` applied)
- `dbt debug` + `dbt run` succeed with
`_respect_server_retry_after_header: true` explicitly set
---------
Co-authored-by: Shubham Dhal <shubham.dhal@databricks.com>1 parent b46d987 commit 482c5f8
3 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments