You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implementing refreshes for destination-postgres
we're bumping the CDK version to the latest, and modifying a whole lot of jsonl files for tests (in both regular and strict-encrypt)
| 0.42.2 | 2024-07-21 |[\#42122](https://github.com/airbytehq/airbyte/pull/42122)| Support for Debezium resync and shutdown scenarios. |
178
185
| 0.42.2 | 2024-07-04 |[\#40208](https://github.com/airbytehq/airbyte/pull/40208)| Implement a new connector error handling and translation framework |
Copy file name to clipboardexpand all lines: airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/integrations/destination/jdbc/SqlOperations.kt
+17-1
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ interface SqlOperations {
117
117
database:JdbcDatabase?,
118
118
schemaName:String?,
119
119
sourceTableName:String?,
120
-
destinationTableName:String?
120
+
destinationTableName:String?,
121
121
): String?
122
122
123
123
/**
@@ -132,6 +132,22 @@ interface SqlOperations {
132
132
/** Check if the data record is valid and ok to be written to destination */
133
133
funisValidData(data:JsonNode?): Boolean
134
134
135
+
/**
136
+
* check if there's any row in table {@code rawNamespace.rawName} for which the value of the
137
+
* _airbyte_generation_id column is different from {@code generationId}
138
+
*
139
+
* @returns true if the table exists and contains such a row, false otherwise
140
+
*/
141
+
funisOtherGenerationIdInTable(
142
+
database:JdbcDatabase,
143
+
generationId:Long,
144
+
rawNamespace:String,
145
+
rawName:String
146
+
): Boolean
147
+
148
+
/** overwrite the raw table with the temporary raw table */
Copy file name to clipboardexpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/jdbc/JdbcBufferedConsumerFactory.kt
Copy file name to clipboardexpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/jdbc/JdbcInsertFlushFunction.kt
Copy file name to clipboardexpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/jdbc/JdbcSqlOperations.kt
+28-19
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,8 @@ abstract class JdbcSqlOperations : SqlOperations {
120
120
%s JSONB,
121
121
%s TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
122
122
%s TIMESTAMP WITH TIME ZONE DEFAULT NULL,
123
-
%s JSONB
123
+
%s JSONB,
124
+
%s BIGINT
124
125
);
125
126
126
127
""".trimIndent(),
@@ -130,14 +131,20 @@ abstract class JdbcSqlOperations : SqlOperations {
130
131
JavaBaseConstants.COLUMN_NAME_DATA,
131
132
JavaBaseConstants.COLUMN_NAME_AB_EXTRACTED_AT,
132
133
JavaBaseConstants.COLUMN_NAME_AB_LOADED_AT,
133
-
JavaBaseConstants.COLUMN_NAME_AB_META
134
+
JavaBaseConstants.COLUMN_NAME_AB_META,
135
+
JavaBaseConstants.COLUMN_NAME_AB_GENERATION_ID,
134
136
)
135
137
}
136
138
137
139
// TODO: This method seems to be used by Postgres and others while staging to local temp files.
138
140
// Should there be a Local staging operations equivalent
Copy file name to clipboardexpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/test/kotlin/io/airbyte/cdk/integrations/destination/jdbc/TestJdbcSqlOperations.kt
Copy file name to clipboardexpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/kotlin/io/airbyte/integrations/base/destination/operation/AbstractStreamOperation.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -331,7 +331,7 @@ abstract class AbstractStreamOperation<DestinationState : MinimumDestinationStat
0 commit comments