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
+27-5Lines changed: 27 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -521,18 +521,36 @@ 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
+
* 3. Stream names with mixed case are handled correctly (under the assumption that destinations
525
+
* that support this will also handle mixed-case namespaces, because this test is annoying
526
+
* to set up with a different namespace).
524
527
*
525
528
* The first behavior technically should be its own test, but we might as well just throw it
526
529
* into a random testcase to avoid running test setup/teardown again.
527
530
*/
528
531
@Test
529
532
@Throws(java.lang.Exception::class)
530
533
funmixedCaseTest() {
534
+
funtoMixedCase(s:String): String=
535
+
s.mapIndexed { i, c ->
536
+
if (i %2==0) {
537
+
c
538
+
} else {
539
+
c.uppercase()
540
+
}
541
+
}.joinToString(separator ="")
542
+
val streamId = sqlGenerator.buildStreamId(
543
+
namespace = streamId.originalNamespace,
544
+
name = toMixedCase(streamId.originalName),
545
+
rawNamespaceOverride = streamId.rawNamespace,
546
+
)
547
+
val streamConfig = incrementalDedupStream.copy(id = streamId)
548
+
531
549
// Add case-sensitive columnName to test json path querying
0 commit comments