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
convert destination-snowflake to Kotlin CDK (#36910)
not only bringing snowflake to the latest CDK but also:
1) Bringing the `SourceOperation` into production code from the test code. There's really no reason those improvements should stay out of production (and they're present in the source-snowflake)
2) adding `putTimestamp` into the `SourceOperation`, so that snowflake doesn't throw an exception at every call, which implies it also creates a new thread
3) make use of the newly added ability to filter orphan thread on shutdown. We filter all the threads created during calls to `SFStatement.close()`
4) don't always take a lock when deleting destinationStates. We now check if there's any states to delete by doing a `SELECT` (and not taking any table lock) before issuing the `DELETE` (the old behavior was causing test contention, and it's a bad idea in general)
5) only execute `airbyte_internal._airbyte_destination_state`
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
+1-1
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,7 @@ abstract class JdbcSqlOperations : SqlOperations {
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
+35-24
Original file line number
Diff line number
Diff line change
@@ -356,7 +356,7 @@ abstract class JdbcDestinationHandler<DestinationState>(
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/testFixtures/kotlin/io/airbyte/cdk/integrations/standardtest/destination/LocalAirbyteDestination.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ class LocalAirbyteDestination(private val dest: Destination) : AirbyteDestinatio
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/dependencies/src/testFixtures/kotlin/io/airbyte/workers/internal/AirbyteDestination.kt
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/kotlin/io/airbyte/integrations/base/destination/typing_deduping/BaseDestinationV1V2Migrator.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ abstract class BaseDestinationV1V2Migrator<DialectTableDefinition> : Destination
171
171
* @return whether it exists and is in the correct format
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/testFixtures/kotlin/io/airbyte/integrations/base/destination/typing_deduping/BaseSqlGeneratorIntegrationTest.kt
+8-5
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ abstract class BaseSqlGeneratorIntegrationTest<DestinationState : MinimumDestina
80
80
* Subclasses should override this method if they need to make changes to the stream ID. For
81
81
* example, you could upcase the final table name here.
82
82
*/
83
-
protectedfunbuildStreamId(
83
+
openprotectedfunbuildStreamId(
84
84
namespace:String,
85
85
finalTableName:String,
86
86
rawTableName:String
@@ -149,7 +149,7 @@ abstract class BaseSqlGeneratorIntegrationTest<DestinationState : MinimumDestina
149
149
/** Identical to [BaseTypingDedupingTest.getRawMetadataColumnNames]. */
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/destination-snowflake/src/main/java/io/airbyte/integrations/destination/snowflake/SnowflakeDatabase.java
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/destination-snowflake/src/main/java/io/airbyte/integrations/destination/snowflake/SnowflakeDestinationRunner.java
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/destination-snowflake/src/main/java/io/airbyte/integrations/destination/snowflake/SnowflakeInternalStagingDestination.java
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/destination-snowflake/src/main/java/io/airbyte/integrations/destination/snowflake/SnowflakeSourceOperations.java
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/destination-snowflake/src/main/java/io/airbyte/integrations/destination/snowflake/SnowflakeSqlOperations.java
0 commit comments