Skip to content

Enable dbc to install off-registry drivers from GitHub repos #394

Open

Description

@ianmcook

It would be nice if dbc had a way to install off-registry drivers from GitHub repos, like dbc install user/repo. This would depend on there existing a latest release tag in that repo with the prebuilt shared libraries as release assets. dbc could install these (and their manifests) under correspondingly named subdirectories of the usual places where drivers are installed. Then the driver managers could take driver="user/repo" and everything should just work. This would be a great way to get experimental ADBC drivers like @tokoko's driver for Iceberg into users' hands more quickly.

This is inspired by how pak works in R.

I think the hardest part of this is documenting how third-party driver developers should set up GitHub Actions to build their drivers for all platforms on each release and include the shared libraries in the release assets. Another hard part will be how to handle code-signing and notarization of drivers, or help users work around the lack thereof for off-registry drivers.

Activity

  1. added
    enhancement
    on Jun 17, 2026
  2. added this to the 0.4.0 milestone on Jun 30, 2026
  3. amoeba commented on Jun 30, 2026

    @amoeba
    Member
    • Check if driver manager spec manifest supports x/y hierarchy (we think profiles do but manifests do not?)
      • Should probably document this explicitly for manifests and profiles
      • Ian checked and this appears to work in at least Rust and other driver managers
    • To do this we'd need to document the unresolved MANIFEST we use in our archives
    • We need to document the release artifact name convention (drivername-os-arch-version quad)
    • Document we require the release tarball needs to be flat
  4. ianmcook commented on Jun 30, 2026

    @ianmcook
    MemberAuthor

    Maybe the syntax should just be dbc install github.com/user/repo so we're not privileging GitHub and we're not foreclosing the future possibility of having hierarchically organized packages on the default registry.

    Or alternatively dbc install @user/repo? That's clearer and more consistent since we could name the directory where the driver is installed @user, enabling driver managers to load the driver with driver="@user/repo".

  5. davlee1972 commented on Aug 10, 2026

    @davlee1972

    It would also be useful if the dbc driver list toml file could also point to a *.so driver installed from a pypi package like adbc-driver-snowflake.

  6. amoeba commented on Aug 10, 2026

    @amoeba
    Member

    Thanks for the note @davlee1972. Would supporting that just be to support the existing, now-retired ADBC driver packages on PyPI? All of those drivers and versions are available already with dbc using the default https://dbc-cdn.columnar.tech registry and we think that's a better experience for users. Are you relying on those packages because pypi.org is allow-listed by your org and columnar.tech is not?

  7. davlee1972 commented on Aug 10, 2026

    @davlee1972

    Yup. I'm relying on the driver method like adbc_driver_snowflake._driver_path for adbc_driver_manager.dbapi.connect() as part of phasing out importing dbapi from different adbc packages.

  8. amoeba commented on Aug 10, 2026

    @amoeba
    Member

    Thanks. Would you be able to clarify this bit?

    ...as part of phasing out importing dbapi from different adbc packages.

  9. davlee1972 commented on Aug 11, 2026

    @davlee1972

    There are two different ways to initialize a dbapi class connection.

    adbc_driver_snowflake.dbapi.connect()
    or
    adbc_driver_manager.dbapi.connect(@driver)

    The first method requires importing a bunch of different adbc python packages.

    Right now I'm working towards just using adbc_driver_manager but until I can resolve onboarding issues with DBC and the CDN I'm calling..

    adbc_driver_manager.dbapi.connect(driver=adbc_driver_snowflake._driver_path())

    It would be preferable if DBC could setup a toml file where the driver file isn't just in .config or etc, but pointing to the driver file in the package folder in python site-packages.

    adbc_driver_manager.dbapi.connect(driver="snowflake")

    Would then work without installing the driver from the CDN.

  10. amoeba commented on Aug 11, 2026

    @amoeba
    Member

    The ADBC Driver Manifests dbc installs would allow that but there's currently no way to make dbc do that, plus the Snowflake driver on PyPI is outdated. Thanks for taking the time to explain.

  11. tokoko commented on Sep 19, 2026

    @tokoko

    @ianmcook I'm thinking of working on this. since dbc can now be configured to install from non-default registries, why don't we introduce a concept of a registry type instead of introducing some kind of naming-based magic resolver? I'm thinking of something like this:

    [[registries]]
    name = 'adbc-drivers-mysql'
    url  = 'https://github.com/adbc-drivers/mysql'
    type = 'github'
    

    type = 'github' will lead the resolver to look for drivers under /releases (the way existing github releases for drivers in adbc-drivers org are laid out, for example mysql). Also, this way type won't be tied to the url, if someone wants to put some sort of a corporate artifactory proxy in front of github, they would be able to point to their own url and keep github as a registry type. wdyt?

  12. eitsupi commented on Sep 21, 2026

    @eitsupi
    Member

    Hi @tokoko, we've been considering this together with #400.

    For that issue, we want the lockfile to record hashes for all available platform artifacts, not just the current platform, so we need a reliable way to resolve that metadata from GitHub Releases.

    I considered something like type = "github", but making it generic seems to require dbc-specific conventions for tags and asset names.
    Even the canonical apache/arrow-adbc releases are difficult to handle generically because one release contains multiple component versions and many unrelated artifact types.

    Packslip was released recently and seems to fit this use case well: publishers explicitly describe platforms, artifacts, and hashes.
    I was also encouraged by mise adopting Packslip as its preferred backend for installing binary packages from GitHub and similar sources.

    So I created a PoC #497.
    For the real-world test, I forked your iceberg driver, published a v0.1.1 release with Packslip metadata, and confirmed that dbc sync can install the host driver and generate a lockfile containing hashes for the Linux, macOS, and Windows artifacts.

    It also works:

    dbc install github.com/eitsupi/tokoko-adbc-iceberg=0.1.1

    I’d be interested to hear what you think of this direction compared with the original type = "github" idea.
    Thank you!

  13. tokoko commented on Sep 21, 2026

    @tokoko

    Hi @eitsupi. tbh, after my comment above, I also came to the conclusion that type = "github" wasn't such a good idea either, mainly because one would have to do N api calls to get all the required metadata for all versions in a "registry". My next idea was to conform github releases to dbc expectations rather than do it the other way. Note that index.yaml in your release contains metadata for all versions. that way simply registering something like this as an additional registry will do the job:

    [[registries]]
    name = 'adbc-iceberg'
    url  = 'https://github.com/tokoko/adbc-iceberg/releases/latest/download'
    

    Of course that doesn't solve signature issues though. The actual solution would be to sign index.yaml and all artifacts and teach dbc to verify those signatures (basically reimplement part of packslip w/o actually adopting it's format). imho, the upside is that the way dbc treats all drivers stays simple and uniform. Incrementally maintaining growing index.yaml files is not ideal, but not that much work either.

    Having said that, I'm fine with packslip approach as well. iiuc, the only downside is that dbc codebase itself needs to be aware of the driver source in a lot more places, PR touches 100+ files after all.

    One thing I dislike in both approaches is the use of absolute urls for the artifacts. I live and breath behind a corporate firewall, so an ideal solution would be one that can be put behind a dumb Artifactory generic proxy repo. Probably not much of a deal-breaker, but something to note.

    Thanks for all the work.

  14. eitsupi commented on Sep 21, 2026

    @eitsupi
    Member

    Thanks for the quick feedback! These are good points.

    Regarding the PR size, most of it is not Packslip-specific.
    #497 also contains the work for #400: the multi-platform lockfile, source/package abstractions, package metadata, and installation/verification changes.
    I think most of that work would still be necessary with another off-registry source model.

    The absolute URL point is interesting.
    A normal HTTP proxy should work, but an Artifactory-style mirror with its own URL would not work transparently with the current lockfile.

    I think it may make sense to keep canonical upstream URLs in the lockfile, but allow local URL rewriting when fetching them, without changing the locked hashes or source identity.
    mise already has url_replacements for exactly this use case, including an Artifactory example, and keeps the logical upstream URLs in its lockfiles:
    https://mise.jdx.dev/url-replacements.html
    jdx/mise#5660 (comment)

    Packslip also has a formal mirror/repackager model, but requiring that seems excessive for a dumb corporate proxy.
    A local URL-rewrite layer in dbc may be a useful complement.

    I don't think we need to solve this as part of the current PoC, but I'll take a closer look at how mise handles this and think about what would fit dbc.

  15. eitsupi commented on Nov 20, 2026

    @eitsupi
    Member

    I think #595 is the solution for code-signing.
    This should allow us to add an HTTP template source (something like mise's https://mise.jdx.dev/dev-tools/backends/http.html) without using a registry.

  16. eitsupi commented on Nov 26, 2026

    @eitsupi
    Member

    Draft PR #621 adds HTTP URL templates to dbc.toml for installing dbc packages directly. I tried it with the unsigned Linux AMD64 archive from adbc-iceberg v0.1.0, which has no checksum file.

    [drivers.iceberg]
    version = "=0.1.0"
    
    [drivers.iceberg.source]
    type = "http"
    url = "https://github.com/tokoko/adbc-iceberg/releases/download/v{version}/iceberg_{os}_{arch}_v{version}.tar.gz"
    signing_key = false
    • dbc lock checked and recorded a SHA-256 digest and size (10,587,386 bytes) that matched the GitHub Releases API.
    • dbc sync installed the driver. A second run reused the installation.
    • Adding macos_arm64 to platforms returned a 404 for the missing asset and left dbc.lock unchanged.
    dbc.lock
    # This file is automatically @generated by dbc. Not intended for manual editing
    version = 2
    
    [[drivers]]
    name = 'iceberg'
    version = '0.1.0'
    
    [drivers.signer]
    type = 'none'
    
    [drivers.source]
    type = 'http'
    template_sha256 = 'sha256:b25b4f451e942edd01c7a0b5496e3458ffbe4d0ddef89e723381006fde6835d1'
    
    [[drivers.artifacts]]
    format = 'tar.gz'
    hash = 'sha256:68ba300f48870539b579cc3218dc6110d35be002aa59a3d91539b6c7eb0812e5'
    size = 10587386
    
    [drivers.artifacts.target]
    os = 'linux'
    arch = 'amd64'
    libc = 'gnu'
    
    [drivers.artifacts.location]
    kind = 'url'
    value = 'https://github.com/tokoko/adbc-iceberg/releases/download/v0.1.0/iceberg_linux_amd64_v0.1.0.tar.gz'
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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions