@@ -14,7 +14,6 @@ import io.airbyte.cdk.load.command.s3.S3BucketConfiguration
14
14
import io.airbyte.cdk.load.command.s3.S3BucketRegion
15
15
import io.airbyte.cdk.load.data.FieldType
16
16
import io.airbyte.cdk.load.data.IntegerType
17
- import io.airbyte.cdk.load.data.MapperPipeline
18
17
import io.airbyte.cdk.load.data.ObjectType
19
18
import io.airbyte.cdk.load.data.StringType
20
19
import io.airbyte.cdk.load.data.iceberg.parquet.toIcebergSchema
@@ -148,8 +147,7 @@ internal class S3DataLakeStreamLoaderTest {
148
147
every { createTable(any(), any(), any(), any()) } returns table
149
148
every { toIcebergSchema(any()) } answers
150
149
{
151
- val pipeline = secondArg() as MapperPipeline
152
- pipeline.finalSchema.withAirbyteMeta(true ).toIcebergSchema(emptyList())
150
+ stream.schema.withAirbyteMeta(true ).toIcebergSchema(emptyList())
153
151
}
154
152
}
155
153
val streamLoader =
@@ -245,8 +243,7 @@ internal class S3DataLakeStreamLoaderTest {
245
243
every { createTable(any(), any(), any(), any()) } returns table
246
244
every { toIcebergSchema(any()) } answers
247
245
{
248
- val pipeline = secondArg() as MapperPipeline
249
- pipeline.finalSchema.withAirbyteMeta(true ).toIcebergSchema(emptyList())
246
+ stream.schema.withAirbyteMeta(true ).toIcebergSchema(emptyList())
250
247
}
251
248
every { constructGenerationIdSuffix(any() as Long ) } returns " "
252
249
every { assertGenerationIdSuffixIsOfValidFormat(any()) } just runs
@@ -396,8 +393,7 @@ internal class S3DataLakeStreamLoaderTest {
396
393
every { createTable(any(), any(), any(), any()) } returns table
397
394
every { toIcebergSchema(any()) } answers
398
395
{
399
- val pipeline = secondArg() as MapperPipeline
400
- pipeline.finalSchema.withAirbyteMeta(true ).toIcebergSchema(listOf (primaryKeys))
396
+ stream.schema.withAirbyteMeta(true ).toIcebergSchema(listOf (primaryKeys))
401
397
}
402
398
every { constructGenerationIdSuffix(any() as Long ) } returns " "
403
399
every { assertGenerationIdSuffixIsOfValidFormat(any()) } just runs
@@ -454,8 +450,7 @@ internal class S3DataLakeStreamLoaderTest {
454
450
val icebergUtil: IcebergUtil = mockk {
455
451
every { toIcebergSchema(any()) } answers
456
452
{
457
- val pipeline = secondArg() as MapperPipeline
458
- pipeline.finalSchema.withAirbyteMeta(true ).toIcebergSchema(emptyList())
453
+ stream.schema.withAirbyteMeta(true ).toIcebergSchema(emptyList())
459
454
}
460
455
}
461
456
val streamLoader =
0 commit comments