Skip to content
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

Destination Teradata: make connector avaialble on Airbyte Cloud #28667

Merged
merged 11 commits into from
Jan 30, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ data:
connectorSubtype: database
connectorType: destination
definitionId: 58e6f9da-904e-11ed-a1eb-0242ac120002
dockerImageTag: 0.1.3
dockerImageTag: 0.1.4
dockerRepository: airbyte/destination-teradata
githubIssueLabel: destination-teradata
icon: teradata.svg
license: MIT
name: Teradata Vantage
registries:
cloud:
enabled: false
enabled: true
oss:
enabled: true
releaseStage: alpha
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public class TeradataDestination extends AbstractJdbcDestination implements Dest

protected static final String CA_CERT_KEY = "ssl_ca_certificate";

protected static final String ENCRYPTDATA = "ENCRYPTDATA";

protected static final String ENCRYPTDATA_ON = "ON";

public static void main(String[] args) throws Exception {
new IntegrationRunner(new TeradataDestination()).run(args);
}
Expand All @@ -57,6 +61,12 @@ public TeradataDestination() {
super(DRIVER_CLASS, new StandardNameTransformer(), new TeradataSqlOperations());
}

private static void createCertificateFile(String fileName, String fileValue) throws IOException {
try (final PrintWriter out = new PrintWriter(fileName, StandardCharsets.UTF_8)) {
out.print(fileValue);
}
}

@Override
protected Map<String, String> getDefaultConnectionProperties(final JsonNode config) {
final Map<String, String> additionalParameters = new HashMap<>();
Expand All @@ -69,15 +79,10 @@ protected Map<String, String> getDefaultConnectionProperties(final JsonNode conf
additionalParameters.put(PARAM_SSLMODE, REQUIRE);
}
}
additionalParameters.put(ENCRYPTDATA, ENCRYPTDATA_ON);
return additionalParameters;
}

private static void createCertificateFile(String fileName, String fileValue) throws IOException {
try (final PrintWriter out = new PrintWriter(fileName, StandardCharsets.UTF_8)) {
out.print(fileValue);
}
}

private Map<String, String> obtainConnectionOptions(final JsonNode encryption) {
final Map<String, String> additionalParameters = new HashMap<>();
if (!encryption.isNull()) {
Expand Down
13 changes: 7 additions & 6 deletions docs/integrations/destinations/teradata.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ You can also use a pre-existing user but we highly recommend creating a dedicate

## CHANGELOG

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :---------------------------------------------- | :------------------------------- |
| 0.1.3 | 2023-08-17 | https://github.com/airbytehq/airbyte/pull/30740 | Enable custom DBT transformation |
| 0.1.2 | 2023-08-09 | https://github.com/airbytehq/airbyte/pull/29174 | Small internal refactor |
| 0.1.1 | 2023-03-03 | https://github.com/airbytehq/airbyte/pull/21760 | Added SSL support |
| 0.1.0 | 2022-12-13 | https://github.com/airbytehq/airbyte/pull/20428 | New Destination Teradata Vantage |
| Version | Date | Pull Request | Subject |
| :------ | :--------- | :---------------------------------------------- | :---------------------------------------- |
| 0.1.4 | 2023-12-04 | https://github.com/airbytehq/airbyte/pull/28667 | Make connector available on Airbyte Cloud |
| 0.1.3 | 2023-08-17 | https://github.com/airbytehq/airbyte/pull/30740 | Enable custom DBT transformation |
| 0.1.2 | 2023-08-09 | https://github.com/airbytehq/airbyte/pull/29174 | Small internal refactor |
| 0.1.1 | 2023-03-03 | https://github.com/airbytehq/airbyte/pull/21760 | Added SSL support |
| 0.1.0 | 2022-12-13 | https://github.com/airbytehq/airbyte/pull/20428 | New Destination Teradata Vantage |