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
Profile option values are not expanded with env_var substitution #19
When connecting via a profile (databow --profile NAME), option values containing the ADBC {{ env_var(NAME) }} substitution template are passed to the driver verbatim instead of being expanded from the process environment. As a result, profiles that rely on environment-variable substitution to inject credentials or URIs (per the ADBC connection-profile spec) fail to connect.
The literal {{ env_var(DATABRICKS_TOKEN) }} template reaches the driver instead of the token value.
Root Cause
adbc_driver_manager only applies env-var substitution along the DriverLocator::Profile code path in ManagedDriver::new_database_with_opts (see lib.rs:593-604 in adbc_driver_manager 0.23.0, which calls process_profile_value for every OptionValue::String).
databow::database::initialize_profile_connection bypasses that path: it loads the profile via FilesystemProfileProvider, collects options with profile.get_options(), and passes them straight to driver.new_database_with_opts(...) without ever calling process_profile_value. Substitution never runs.
Expected Behavior
Profile option values containing {{ env_var(NAME) }} should be expanded against the process environment before the options are handed to the driver — matching the ADBC spec and the behavior users get when going through the driver manager's own DriverLocator::Profile path.
@esadek Curious about your thoughts on this. I'm wanting to make databow available to my team's repo as a default dev tool and having the templated profiles is the lowest friction and most secure way to get people onboard.
Activity
theiotidiot commentedon Jul 7, 2026
@esadek Curious about your thoughts on this. I'm wanting to make databow available to my team's repo as a default dev tool and having the templated profiles is the lowest friction and most secure way to get people onboard.
esadek commentedon Jul 7, 2026
@theiotidiot Will look into this today.
fix: expand env_var substitution in profile option values (columnar-t…