Skip to content

Unexpected argument backoff_max with databricks-sql-connector 2.9.2 #205

Description

@orslow

Hello,

Release note says "databricks-sql-connector 2.9.2 is compatible with urllib3>=1.0.0", but it still pass backoff_max argument, which was introduced from urllib3 2.0.0 (ref: https://github.com/urllib3/urllib3/blob/6446fef0cf432ca035169602a1447a0d8ef53e80/src/urllib3/util/retry.py#L209)

    return sql.connect(
  File "/usr/local/lib/python3.10/site-packages/databricks/sql/__init__.py", line 50, in connect
    return Connection(server_hostname, http_path, access_token, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/databricks/sql/client.py", line 186, in __init__
    self.thrift_backend = ThriftBackend(
  File "/usr/local/lib/python3.10/site-packages/databricks/sql/thrift_backend.py", line 189, in __init__
    self.retry_policy = databricks.sql.auth.thrift_http_client.DatabricksRetryPolicy(
  File "/usr/local/lib/python3.10/site-packages/databricks/sql/auth/retry.py", line 132, in __init__
    super().__init__(
TypeError: Retry.__init__() got an unexpected keyword argument 'backoff_max'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions