Commit 899bafd
committed
fix(dlt): always use destination_client for connection config
The dlt destination-client selection gated the 1.10.0 API change with a
string comparison (`dlt.__version__ >= "1.10.0"`). String comparison is
lexicographic, so it wrongly evaluated "1.9.0" >= "1.10.0" (and "1.2.0",
"1.5.10", ...) as True, sending every 1.x version down the >=1.10.0
branch.
`destination_client()` is the public accessor on every realistically
supported dlt version, and the pre-1.10 `_sql_job_client` fallback was
already unreachable because of the same string-compare bug, so drop the
version gate and always use `destination_client()`.
Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>1 parent aebfac9 commit 899bafd
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 66 | + | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
| |||
0 commit comments