You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "jackye1995 (via GitHub)" <gi...@apache.org> on 2025/08/23 04:21:12 UTC
[PR] feat(services/azblob): Add compatibility aliases for Apache Arrow object_store [opendal]
jackye1995 opened a new pull request, #6527:
URL: https://github.com/apache/opendal/pull/6527
## Summary
Enable seamless migration from Apache Arrow's object_store library by adding serde aliases for Azure Blob storage configuration fields. These aliases follow the same naming conventions used in the [object_store Azure builder](https://github.com/apache/arrow-rs-object-store/blob/main/src/azure/builder.rs).
## Supported Alias Mappings
| OpenDAL Field | OpenDAL Type | object_store Aliases | Notes |
|---------------|-------------|---------------------|--------|
| `container` | `String` | `azure_container_name`, `container_name` | Container/bucket name |
| `account_name` | `Option<String>` | `azure_storage_account_name` | Storage account name |
| `account_key` | `Option<String>` | `azure_storage_account_key`, `azure_storage_access_key`, `azure_storage_master_key`, `access_key`, `master_key` | Account key for authentication |
| `sas_token` | `Option<String>` | `azure_storage_sas_key`, `azure_storage_sas_token`, `sas_key` | Shared Access Signature token |
| `endpoint` | `Option<String>` | `azure_storage_endpoint`, `azure_endpoint` | Custom endpoint URL |
## Unsupported Aliases
The following object_store configuration keys are not supported in OpenDAL Azure Blob service:
| object_store Key | Aliases | Reason |
|-----------------|---------|---------|
| `client_id` | `azure_storage_client_id`, `azure_client_id`, `client_id` | OAuth client credentials not implemented |
| `client_secret` | `azure_storage_client_secret`, `azure_client_secret`, `client_secret` | OAuth client credentials not implemented |
| `tenant_id` | `azure_storage_tenant_id`, `azure_storage_authority_id`, `azure_tenant_id`, `azure_authority_id`, `tenant_id`, `authority_id` | OAuth tenant authentication not implemented |
| `authority_host` | `azure_storage_authority_host`, `azure_authority_host`, `authority_host` | OAuth authority host not implemented |
| `bearer_token` | `azure_storage_token`, `bearer_token`, `token` | Bearer token authentication not implemented |
| `use_emulator` | `azure_storage_use_emulator`, `use_emulator` | Azurite emulator support not implemented |
| `msi_endpoint` | `azure_msi_endpoint`, `azure_identity_endpoint`, `identity_endpoint`, `msi_endpoint` | Managed identity not implemented |
| `object_id` | `azure_object_id`, `object_id` | Managed identity not implemented |
| `msi_resource_id` | `azure_msi_resource_id`, `msi_resource_id` | Managed identity not implemented |
| `federated_token_file` | `azure_federated_token_file`, `federated_token_file` | Workload identity not implemented |
| `use_azure_cli` | `azure_use_azure_cli`, `use_azure_cli` | Azure CLI authentication not implemented |
| `skip_signature` | `azure_skip_signature`, `skip_signature` | Public container access not implemented |
| `use_fabric_endpoint` | `azure_use_fabric_endpoint`, `use_fabric_endpoint` | Microsoft Fabric endpoint not implemented |
| `disable_tagging` | `azure_disable_tagging`, `disable_tagging` | Tagging control not implemented |
## Missing Configurations
OpenDAL Azure Blob service includes the following configurations that are not present in object_store:
| OpenDAL Field | Type | Purpose |
|--------------|------|---------|
| `root` | `Option<String>` | Root path for all operations |
| `encryption_key` | `Option<String>` | Customer-provided encryption key |
| `encryption_key_sha256` | `Option<String>` | SHA256 hash of encryption key |
| `encryption_algorithm` | `Option<String>` | Encryption algorithm specification |
| `batch_max_operations` | `Option<usize>` | Maximum operations in batch requests |
## Usage Example
Users can now migrate from object_store configurations seamlessly:
```rust
// object_store style configuration
let config = AzblobConfig {
azure_container_name: Some("my-container".to_string()),
azure_storage_account_name: Some("myaccount".to_string()),
azure_storage_account_key: Some("key".to_string()),
azure_storage_endpoint: Some("https://myaccount.blob.core.windows.net".to_string()),
..Default::default()
};
// OpenDAL native style (still supported)
let config = AzblobConfig {
container: "my-container".to_string(),
account_name: Some("myaccount".to_string()),
account_key: Some("key".to_string()),
endpoint: Some("https://myaccount.blob.core.windows.net".to_string()),
..Default::default()
};
```
## Test Plan
- [x] Unit tests verify all aliases work correctly through JSON deserialization
- [x] Clippy checks pass with no warnings
- [x] Code formatting applied
Closes: N/A
Related: Similar to #6524 for S3 service
🤖 Generated with [Claude Code](https://claude.ai/code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(services/azblob): Add compatibility aliases for Apache Arrow object_store [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo merged PR #6527:
URL: https://github.com/apache/opendal/pull/6527
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org