-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: unify environment variables referenced by Databricks docs #1673
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's deprecate the old ones before we make the breaking change.
rust/src/data_catalog/unity/mod.rs
Outdated
"access_token" | "unity_access_token" | "databricks_access_token" => { | ||
Ok(UnityCatalogConfigKey::AccessToken) | ||
} | ||
"unity_token" | "databricks_token" => Ok(UnityCatalogConfigKey::Token), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm can we leave the old ones in but emit a deprecation warning? Something like:
// TODO: Remove these variables
"access_token" | "unity_access_token" | "databricks_access_token" => {
log::warn!("Environment variable '{}' is deprecated and will be remove in a future veresion. Please use UNITY_TOKEN or DATABRICKS_TOKEN instead.");
Ok(UnityCatalogConfigKey::Token)
}
This will just save us some work answering questions about why their environment variables suddenly don't work anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't disagree but don't feel like doing that work today, so I'm going to drop this out of the milestone and release 0.16
rust/src/data_catalog/unity/mod.rs
Outdated
"workspace_url" | "unity_workspace_url" | "databricks_workspace_url" => { | ||
Ok(UnityCatalogConfigKey::WorkspaceUrl) | ||
} | ||
"unity_host" | "databricks_host" => Ok(UnityCatalogConfigKey::Host), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here, would prefer to provide a deprecation warning first.
4f9d885
to
edd1837
Compare
Long-term fix will be for Databricks to release a Rust SDK for Unity 😄 Fixes delta-io#1627
edd1837
to
13e8be1
Compare
Long-term fix will be for Databricks to release a Rust SDK for Unity 😄
Fixes #1627