Skip to content

License of dependency go-retryablehttp #177

Closed

Description

@7phs

Hello,

Databricks SQL driver licensed under Apache-2.0 license.

A dependency - github.com/hashicorp/go-retryablehttp licensed under Mozilla Public License - 2.0.

MPL-2 license has a difference with Apache-2.0 license in requirement of mentioning source code of library.

MPL-2 of github.com/hashicorp/go-retryablehttp is a blocker to use Databricks SQL driver in a commercial project that I'm working on related to compliance.

Could you tell me what is a good way/workaround to use other returnable client with Databricks SQL driver?

Best regards,
Aleksei

Activity

  1. rcypher-databricks commented on Nov 9, 2023

    @rcypher-databricks
    Contributor

    There's https://github.com/ybbus/httpretry
    Here's a page listing other similar packages: https://go.libhunt.com/httpretry-alternatives

    You could try running without retry and just use the pooled http client, though that's going to really cut down on the robustness of the driver.

  2. 7phs commented on Nov 20, 2023

    @7phs
    Author

    Thanks for looking into it!

    We are not going to use databricks-sql-go without retry-able http-client.

    I'd like to draw your attention on an issue that we have - the license of databricks-sql-go is not completely compatible with a package of returnable http client github.com/hashicorp/go-retryablehttp.

    There are several possible solutions:

    1. databricks-sql-go replaces a current retry-able http client with a package has completely compatible license with databricks-sql-go license.
    2. Making selecting/using retry-able http client optional in the code of databricks-sql-go to make easy changing a package.
    3. Using replace instruction of go.mod on our end.

    Could you tell me what is a good option from your point of view?

  3. datbth commented on Dec 23, 2025

    @datbth

    hi @7phs, may I ask what option you have gone with?

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

Metadata

Metadata

Assignees

No one assigned

    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