forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉 Destination Databricks: Support Azure storage (airbytehq#15140) (ai…
…rbytehq#15329) * 🎉 Destination Databricks: Support Azure storage (airbytehq#15140) * Update docs and version. * Revert unintentional change to S3 config parsing. * Revert unnecessary additional table property. * change spec.json * Ignore azure integration test * Add issue link * auto-bump connector version Co-authored-by: Marcos Marx <[email protected]> Co-authored-by: marcosmarxm <[email protected]> Co-authored-by: Liren Tu <[email protected]> Co-authored-by: Octavia Squidington III <[email protected]>
- Loading branch information
1 parent
f5816e6
commit 573d5e6
Showing
37 changed files
with
1,393 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
airbyte-integrations/connectors/destination-databricks/sample_secrets/azure_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"accept_terms": true, | ||
"databricks_server_hostname": "abc-12345678-wxyz.cloud.databricks.com", | ||
"databricks_http_path": "sql/protocolvx/o/1234567489/0000-1111111-abcd90", | ||
"databricks_port": "443", | ||
"databricks_personal_access_token": "dapi0123456789abcdefghij0123456789AB", | ||
"database_schema": "public", | ||
"data_source": { | ||
"data_source_type": "Azure_Blob_Storage", | ||
"azure_blob_storage_endpoint_domain_name": "blob.core.windows.net", | ||
"azure_blob_storage_account_name": "account", | ||
"azure_blob_storage_sas_token": "token", | ||
"azure_blob_storage_container_name": "container", | ||
"azure_blob_storage_output_buffer_size": 5 | ||
}, | ||
"purge_staging_data": false | ||
} |
23 changes: 23 additions & 0 deletions
23
...java/io/airbyte/integrations/destination/databricks/DatabricksAzureBlobStorageConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.integrations.destination.databricks; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import io.airbyte.integrations.destination.jdbc.copy.azure.AzureBlobStorageConfig; | ||
|
||
public class DatabricksAzureBlobStorageConfig extends DatabricksStorageConfig { | ||
|
||
private final AzureBlobStorageConfig azureConfig; | ||
|
||
public DatabricksAzureBlobStorageConfig(JsonNode config) { | ||
this.azureConfig = AzureBlobStorageConfig.getAzureBlobConfig(config); | ||
} | ||
|
||
@Override | ||
public AzureBlobStorageConfig getAzureBlobStorageConfigOrThrow() { | ||
return azureConfig; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...io/airbyte/integrations/destination/databricks/DatabricksAzureBlobStorageDestination.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.integrations.destination.databricks; | ||
|
||
import io.airbyte.integrations.destination.azure_blob_storage.AzureBlobStorageConnectionChecker; | ||
import io.airbyte.integrations.destination.jdbc.copy.azure.AzureBlobStorageConfig; | ||
|
||
public class DatabricksAzureBlobStorageDestination extends DatabricksBaseDestination { | ||
|
||
@Override | ||
protected void checkPersistence(DatabricksStorageConfig databricksConfig) { | ||
AzureBlobStorageConfig azureConfig = databricksConfig.getAzureBlobStorageConfigOrThrow(); | ||
final AzureBlobStorageConnectionChecker client = new AzureBlobStorageConnectionChecker(azureConfig); | ||
client.attemptWriteAndDelete(); | ||
} | ||
|
||
@Override | ||
protected DatabricksStreamCopierFactory getStreamCopierFactory() { | ||
return new DatabricksAzureBlobStorageStreamCopierFactory(); | ||
} | ||
|
||
} |
Oops, something went wrong.