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/typing-deduping/src/testFixtures/kotlin/io/airbyte/integrations/base/destination/typing_deduping/BaseSqlGeneratorIntegrationTest.kt
+31-14
Original file line number
Diff line number
Diff line change
@@ -521,49 +521,66 @@ abstract class BaseSqlGeneratorIntegrationTest<DestinationState : MinimumDestina
521
521
* Verifies two behaviors:
522
522
* 1. The isFinalTableEmpty method behaves correctly during a sync
523
523
* 2. Column names with mixed case are handled correctly
524
-
*
524
+
* 3. Stream names with mixed case are handled correctly (under the assumption that destinations
525
+
* ```
526
+
* that support this will also handle mixed-case namespaces, because this test is annoying
527
+
* to set up with a different namespace).
528
+
* ```
525
529
* The first behavior technically should be its own test, but we might as well just throw it
526
530
* into a random testcase to avoid running test setup/teardown again.
527
531
*/
528
532
@Test
529
533
@Throws(java.lang.Exception::class)
530
534
funmixedCaseTest() {
535
+
funtoMixedCase(s:String): String=
536
+
s.mapIndexed { i, c ->
537
+
if (i %2==0) {
538
+
c
539
+
} else {
540
+
c.uppercase()
541
+
}
542
+
}
543
+
.joinToString(separator ="")
544
+
val streamId =
545
+
sqlGenerator.buildStreamId(
546
+
namespace = streamId.originalNamespace,
547
+
name = toMixedCase(streamId.originalName),
548
+
rawNamespaceOverride = streamId.rawNamespace,
549
+
)
550
+
val streamConfig = incrementalDedupStream.copy(id = streamId)
551
+
531
552
// Add case-sensitive columnName to test json path querying
0 commit comments