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
cdk-java move the generationId handling to its own class (#43329)
This pull request introduces a new interface, `JdbcGenerationHandler`, to handle the retrieval of the `_airbyte_generation_id` for any row in a table. The `getGenerationIdInTable` method has been moved from `SqlOperations` to this new interface. The necessary changes have been made across various classes to integrate this new interface properly.
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/integrations/destination/jdbc/SqlOperations.kt
-7
Original file line number
Diff line number
Diff line change
@@ -132,13 +132,6 @@ 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
-
* get the value of _airbyte_generation_id for any row in table {@code rawNamespace.rawName}
137
-
*
138
-
* @returns true if the table exists and contains such a row, false otherwise
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/jdbc/AbstractJdbcDestination.kt
+3
Original file line number
Diff line number
Diff line change
@@ -189,6 +189,8 @@ abstract class AbstractJdbcDestination<DestinationState : MinimumDestinationStat
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/typing_deduping/JdbcDestinationHandler.kt
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/main/kotlin/io/airbyte/cdk/integrations/destination/jdbc/typing_deduping/NoOpJdbcDestinationHandler.kt
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/test/kotlin/io/airbyte/cdk/integrations/destination/jdbc/AbstractJdbcDestinationTest.kt
+2
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,8 @@ class AbstractJdbcDestinationTest {
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
-9
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,6 @@ class TestJdbcSqlOperations : JdbcSqlOperations() {
0 commit comments