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
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/JdbcSqlGenerator.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -286,7 +286,7 @@ abstract class JdbcSqlGenerator(protected val namingTransformer: NamingConventio
286
286
287
287
overridefunupdateTable(
288
288
streamConfig:StreamConfig,
289
-
finalSuffix:String?,
289
+
finalSuffix:String,
290
290
minRawTimestamp:Optional<Instant>,
291
291
useExpensiveSaferCasting:Boolean
292
292
): Sql {
@@ -300,7 +300,7 @@ abstract class JdbcSqlGenerator(protected val namingTransformer: NamingConventio
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/db-destinations/src/testFixtures/kotlin/io/airbyte/cdk/integrations/standardtest/destination/typing_deduping/JdbcSqlGeneratorIntegrationTest.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ abstract class JdbcSqlGeneratorIntegrationTest<DestinationState : MinimumDestina
38
38
// TODO - can we move this class into db_destinations/testFixtures?
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/kotlin/io/airbyte/integrations/base/destination/typing_deduping/SqlGenerator.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ interface SqlGenerator {
65
65
*/
66
66
funupdateTable(
67
67
stream:StreamConfig,
68
-
finalSuffix:String?,
68
+
finalSuffix:String,
69
69
minRawTimestamp:Optional<Instant>,
70
70
useExpensiveSaferCasting:Boolean
71
71
): Sql
@@ -76,7 +76,7 @@ interface SqlGenerator {
76
76
* This method may assume that the stream is an OVERWRITE stream, and that the final suffix is
77
77
* non-empty. Callers are responsible for verifying those are true.
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/kotlin/io/airbyte/integrations/base/destination/typing_deduping/TypeAndDedupeTransaction.kt
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/test/kotlin/io/airbyte/integrations/base/destination/typing_deduping/AirbyteTypeTest.kt
+2-14
Original file line number
Diff line number
Diff line change
@@ -396,13 +396,7 @@ class AirbyteTypeTest {
396
396
Union(
397
397
List.of(
398
398
AirbyteProtocolType.STRING,
399
-
Struct(
400
-
object:LinkedHashMap<String, AirbyteType>() {
401
-
init {
402
-
put("foo", AirbyteProtocolType.STRING)
403
-
}
404
-
}
405
-
),
399
+
Struct(linkedMapOf("foo" to AirbyteProtocolType.STRING)),
406
400
Array(AirbyteProtocolType.STRING)
407
401
)
408
402
)
@@ -533,13 +527,7 @@ class AirbyteTypeTest {
533
527
Union(
534
528
List.of(
535
529
AirbyteProtocolType.STRING,
536
-
Struct(
537
-
object:LinkedHashMap<String, AirbyteType>() {
538
-
init {
539
-
put("foo", AirbyteProtocolType.STRING)
540
-
}
541
-
}
542
-
),
530
+
Struct(linkedMapOf("foo" to AirbyteProtocolType.STRING)),
543
531
Array(
544
532
AirbyteProtocolType.STRING
545
533
), // This is bad behavior, but it matches current behavior so we'll test it.
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/test/kotlin/io/airbyte/integrations/base/destination/typing_deduping/CollectionUtilsTest.kt
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/test/kotlin/io/airbyte/integrations/base/destination/typing_deduping/DefaultTyperDeduperTest.kt
+6-3
Original file line number
Diff line number
Diff line change
@@ -137,10 +137,11 @@ class DefaultTyperDeduperTest {
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/test/kotlin/io/airbyte/integrations/base/destination/typing_deduping/DestinationV1V2MigratorTest.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -74,11 +74,11 @@ class DestinationV1V2MigratorTest {
Copy file name to clipboardExpand all lines: airbyte-cdk/java/airbyte-cdk/typing-deduping/src/test/kotlin/io/airbyte/integrations/base/destination/typing_deduping/MockSqlGenerator.kt
+5-5
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ internal class MockSqlGenerator : SqlGenerator {
32
32
33
33
overridefunupdateTable(
34
34
stream:StreamConfig,
35
-
finalSuffix:String?,
35
+
finalSuffix:String,
36
36
minRawTimestamp:Optional<Instant>,
37
37
useExpensiveSaferCasting:Boolean
38
38
): Sql {
@@ -42,18 +42,18 @@ internal class MockSqlGenerator : SqlGenerator {
42
42
.orElse("")
43
43
val casting =if (useExpensiveSaferCasting) " WITH"else" WITHOUT"+" SAFER CASTING"
0 commit comments