Skip to content

Commit a9238d9

Browse files
authored
Destination Postgres: improve destination state handling (#36768)
1 parent 7c98ebe commit a9238d9

File tree

8 files changed

+127
-124
lines changed

8 files changed

+127
-124
lines changed

airbyte-cdk/java/airbyte-cdk/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Maven and Gradle will automatically reference the correct (pinned) version of th
144144

145145
| Version | Date | Pull Request | Subject |
146146
|:--------|:-----------|:-----------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
147+
| 0.29.7 | 2024-04-08 | [\#36768](https://github.com/airbytehq/airbyte/pull/36768) | Destinations: Make destination state fetch/commit logic more resilient to errors |
147148
| 0.29.6 | 2024-04-05 | [\#36577](https://github.com/airbytehq/airbyte/pull/36577) | Do not send system_error trace message for config exceptions. |
148149
| 0.29.5 | 2024-04-05 | [\#36620](https://github.com/airbytehq/airbyte/pull/36620) | Missed changes - open for extension for destination-postgres |
149150
| 0.29.3 | 2024-04-04 | [\#36759](https://github.com/airbytehq/airbyte/pull/36759) | Minor fixes. |
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.29.6
1+
version=0.29.7

airbyte-cdk/java/airbyte-cdk/db-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/jdbc/typing_deduping/JdbcDestinationHandler.kt

+112-111
Large diffs are not rendered by default.

airbyte-integrations/connectors/destination-postgres-strict-encrypt/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
airbyteJavaConnector {
6-
cdkVersionRequired = '0.29.5'
6+
cdkVersionRequired = '0.29.7'
77
features = ['db-destinations', 'typing-deduping', 'datastore-postgres']
88
useLocalCdk = false
99
}

airbyte-integrations/connectors/destination-postgres-strict-encrypt/metadata.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ data:
22
connectorSubtype: database
33
connectorType: destination
44
definitionId: 25c5221d-dce2-4163-ade9-739ef790f503
5-
dockerImageTag: 2.0.6
5+
dockerImageTag: 2.0.7
66
dockerRepository: airbyte/destination-postgres-strict-encrypt
77
documentationUrl: https://docs.airbyte.com/integrations/destinations/postgres
88
githubIssueLabel: destination-postgres
@@ -18,8 +18,8 @@ data:
1818
breakingChanges:
1919
2.0.0:
2020
message: >
21-
This version introduces [Destinations V2](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#what-is-destinations-v2), which provides better error handling, incremental delivery of data for large syncs, and improved final table structures.
22-
To review the breaking changes, and how to upgrade, see [here](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#quick-start-to-upgrading).
21+
This version introduces [Destinations V2](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#what-is-destinations-v2), which provides better error handling, incremental delivery of data for large syncs, and improved final table structures.
22+
To review the breaking changes, and how to upgrade, see [here](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#quick-start-to-upgrading).
2323
These changes will likely require updates to downstream dbt / SQL models, which we walk through [here](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#updating-downstream-transformations).
2424
Selecting `Upgrade` will upgrade **all** connections using this destination at their next sync. For more controlled upgrade [see instructions](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#upgrading-connections-one-by-one-with-dual-writing).
2525
upgradeDeadline: "2024-05-31"

airbyte-integrations/connectors/destination-postgres/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ plugins {
33
}
44

55
airbyteJavaConnector {
6-
cdkVersionRequired = '0.29.5'
6+
cdkVersionRequired = '0.29.7'
77
features = ['db-destinations', 'datastore-postgres', 'typing-deduping']
8-
useLocalCdk = false
8+
useLocalCdk = true
99
}
1010

1111
application {

airbyte-integrations/connectors/destination-postgres/metadata.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ data:
55
connectorSubtype: database
66
connectorType: destination
77
definitionId: 25c5221d-dce2-4163-ade9-739ef790f503
8-
dockerImageTag: 2.0.6
8+
dockerImageTag: 2.0.7
99
dockerRepository: airbyte/destination-postgres
1010
documentationUrl: https://docs.airbyte.com/integrations/destinations/postgres
1111
githubIssueLabel: destination-postgres
@@ -22,8 +22,8 @@ data:
2222
breakingChanges:
2323
2.0.0:
2424
message: >
25-
This version introduces [Destinations V2](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#what-is-destinations-v2), which provides better error handling, incremental delivery of data for large syncs, and improved final table structures.
26-
To review the breaking changes, and how to upgrade, see [here](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#quick-start-to-upgrading).
25+
This version introduces [Destinations V2](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#what-is-destinations-v2), which provides better error handling, incremental delivery of data for large syncs, and improved final table structures.
26+
To review the breaking changes, and how to upgrade, see [here](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#quick-start-to-upgrading).
2727
These changes will likely require updates to downstream dbt / SQL models, which we walk through [here](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#updating-downstream-transformations).
2828
Selecting `Upgrade` will upgrade **all** connections using this destination at their next sync. For more controlled upgrade [see instructions](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2/#upgrading-connections-one-by-one-with-dual-writing).
2929
upgradeDeadline: "2024-05-31"

docs/integrations/destinations/postgres.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Postgres, while an excellent relational database, is not a data warehouse.
1515
are likely to cause collisions when used as a destination receiving data from highly-nested and
1616
flattened sources, e.g. `{63 byte name}_a` and `{63 byte name}_b` will both be truncated to
1717
`{63 byte name}` which causes postgres to throw an error that a duplicate column name was
18-
specified. This limit is applicable to table names too.
18+
specified. This limit is applicable to table names too.
1919

2020
:::
2121

@@ -105,8 +105,8 @@ From
105105

106106
Airbyte Postgres destination will create raw tables and schemas using the Unquoted identifiers by
107107
replacing any special characters with an underscore. All final tables and their corresponding
108-
columns are created using Quoted identifiers preserving the case sensitivity. Special characters in final
109-
tables are replaced with underscores.
108+
columns are created using Quoted identifiers preserving the case sensitivity. Special characters in final
109+
tables are replaced with underscores.
110110

111111
:::
112112

@@ -236,6 +236,7 @@ Now that you have set up the Postgres destination connector, check out the follo
236236

237237
| Version | Date | Pull Request | Subject |
238238
|:--------|:-----------|:-----------------------------------------------------------|:---------------------------------------------------------------------------------------------------------|
239+
| 2.0.7 | 2024-04-08 | [\#36768](https://github.com/airbytehq/airbyte/pull/36768) | Adopt CDK 0.29.7 to improve destination state handling |
239240
| 2.0.6 | 2024-04-05 | [\#36620](https://github.com/airbytehq/airbyte/pull/36620) | Adopt CDK 0.29.3 to use Kotlin CDK |
240241
| 2.0.5 | 2024-03-07 | [\#35899](https://github.com/airbytehq/airbyte/pull/35899) | Adopt CDK 0.27.3; Bugfix for case-senstive table names in v1-v2 migration, `_airbyte_meta` in raw tables |
241242
| 2.0.4 | 2024-03-07 | [\#35899](https://github.com/airbytehq/airbyte/pull/35899) | Adopt CDK 0.23.18; Null safety check in state parsing |

0 commit comments

Comments
 (0)