You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable dbc to install off-registry drivers from GitHub repos #394
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.
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.
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".
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?
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.
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.
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.
@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?
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.
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 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.
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.
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 editingversion = 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'
Activity
amoeba commentedon Jun 30, 2026
ianmcook commentedon Jun 30, 2026
Maybe the syntax should just be
dbc install github.com/user/reposo 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 withdriver="@user/repo".davlee1972 commentedon Aug 10, 2026
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.
amoeba commentedon Aug 10, 2026
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?
davlee1972 commentedon Aug 10, 2026
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.
amoeba commentedon Aug 10, 2026
Thanks. Would you be able to clarify this bit?
davlee1972 commentedon Aug 11, 2026
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.
amoeba commentedon Aug 11, 2026
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.
tokoko commentedon Sep 19, 2026
@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:
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 keepgithubas a registry type. wdyt?eitsupi commentedon Sep 21, 2026
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-adbcreleases 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.1release with Packslip metadata, and confirmed thatdbc synccan install the host driver and generate a lockfile containing hashes for the Linux, macOS, and Windows artifacts.It also works:
I’d be interested to hear what you think of this direction compared with the original
type = "github"idea.Thank you!
tokoko commentedon Sep 21, 2026
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 thatindex.yamlin your release contains metadata for all versions. that way simply registering something like this as an additional registry will do the job: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.
eitsupi commentedon Sep 21, 2026
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_replacementsfor 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.
feat: send registry requests to a mirror with URL replacement rules (#…
eitsupi commentedon Nov 20, 2026
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.
eitsupi commentedon Nov 26, 2026
Draft PR #621 adds HTTP URL templates to
dbc.tomlfor installing dbc packages directly. I tried it with the unsigned Linux AMD64 archive from adbc-iceberg v0.1.0, which has no checksum file.dbc lockchecked and recorded a SHA-256 digest and size (10,587,386 bytes) that matched the GitHub Releases API.dbc syncinstalled the driver. A second run reused the installation.macos_arm64toplatformsreturned a 404 for the missing asset and leftdbc.lockunchanged.dbc.lock
feat: install drivers from HTTP URL templates in dbc.toml (#621)