Skip to content

Commit

Permalink
feat: Added workspace oauth source for UC
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Carman <[email protected]>
  • Loading branch information
hntd187 committed Jan 21, 2025
1 parent 334a656 commit 3bff47b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/catalog-unity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,10 @@ impl FromStr for UnityCatalogConfigKey {
"use_azure_cli" | "unity_use_azure_cli" | "databricks_use_azure_cli" => {
Ok(UnityCatalogConfigKey::UseAzureCli)
}
"workspace_url" | "unity_workspace_url" | "databricks_workspace_url" => {
Ok(UnityCatalogConfigKey::WorkspaceUrl)
}
"workspace_url"
| "unity_workspace_url"
| "databricks_workspace_url"
| "databricks_host" => Ok(UnityCatalogConfigKey::WorkspaceUrl),
_ => Err(DataCatalogError::UnknownConfigKey {
catalog: "unity",
key: s.to_string(),
Expand Down Expand Up @@ -373,6 +374,7 @@ impl UnityCatalogBuilder {
if let Ok(config_key) =
UnityCatalogConfigKey::from_str(&key.to_ascii_lowercase())
{
tracing::debug!("Trying: {} with {}", key, value);
builder = builder.try_with_option(config_key, value).unwrap();
}
}
Expand Down

0 comments on commit 3bff47b

Please sign in to comment.