Skip to content

Commit

Permalink
source-redshift: adopt CDK 0.20.4 (#35223)
Browse files Browse the repository at this point in the history
  • Loading branch information
postamar committed Feb 14, 2024
1 parent ce44597 commit 6367555
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
21 changes: 2 additions & 19 deletions airbyte-integrations/connectors/source-redshift/build.gradle
Original file line number Diff line number Diff line change
@@ -1,38 +1,21 @@
plugins {
id 'application'
id 'airbyte-java-connector'
}

airbyteJavaConnector {
cdkVersionRequired = '0.13.2'
cdkVersionRequired = '0.20.4'
features = ['db-sources']
useLocalCdk = false
}

//remove once upgrading the CDK version to 0.4.x or later
java {
compileTestJava {
options.compilerArgs.remove("-Werror")
}
compileJava {
options.compilerArgs.remove("-Werror")
}
}

airbyteJavaConnector.addCdkDependencies()

application {
mainClass = 'io.airbyte.integrations.source.redshift.RedshiftSource'
applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0']
}

dependencies {

implementation 'com.amazon.redshift:redshift-jdbc42:1.2.43.1067'

testImplementation 'org.apache.commons:commons-text:1.10.0'
testImplementation 'org.apache.commons:commons-lang3:3.11'
testImplementation 'org.apache.commons:commons-dbcp2:2.7.0'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
integrationTestJavaImplementation libs.testcontainers.jdbc
testImplementation "org.testcontainers:jdbc:1.19.4"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ data:
connectorSubtype: database
connectorType: source
definitionId: e87ffa8e-a3b5-f69c-9076-6011339de1f6
dockerImageTag: 0.5.1
dockerImageTag: 0.5.2
dockerRepository: airbyte/source-redshift
documentationUrl: https://docs.airbyte.com/integrations/sources/redshift
githubIssueLabel: source-redshift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public Set<String> getExcludedInternalNameSpaces() {
}

@Override
@SuppressWarnings("unchecked")
public Set<JdbcPrivilegeDto> getPrivilegesTableForCurrentUser(final JdbcDatabase database, final String schema) throws SQLException {
return new HashSet<>(database.bufferedResultSetQuery(
connection -> {
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/redshift.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ All Redshift connections are encrypted using SSL

| Version | Date | Pull Request | Subject |
|:--------|:-----------| :------------------------------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------|
| 0.5.2 | 2024-02-13 | [35223](https://github.com/airbytehq/airbyte/pull/35223) | Adopt CDK 0.20.4 |
| 0.5.1 | 2024-01-24 | [34453](https://github.com/airbytehq/airbyte/pull/34453) | bump CDK version |
| 0.5.0 | 2023-12-18 | [33484](https://github.com/airbytehq/airbyte/pull/33484) | Remove LEGACY state |
| (none) | 2023-11-17 | [32616](https://github.com/airbytehq/airbyte/pull/32616) | Improve timestamptz handling |
Expand Down

0 comments on commit 6367555

Please sign in to comment.