Skip to content

Commit

Permalink
Use RecordWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsimsek committed Oct 5, 2024
1 parent 612775a commit 3c678ea
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import io.debezium.server.iceberg.testresources.BaseSparkTest;
import io.debezium.server.iceberg.testresources.IcebergChangeEventBuilder;
import io.debezium.server.iceberg.testresources.S3Minio;
import io.debezium.server.iceberg.testresources.SourcePostgresqlDB;
import io.quarkus.test.common.WithTestResource;
import io.quarkus.test.junit.QuarkusTest;
import jakarta.inject.Inject;
Expand All @@ -39,6 +40,7 @@
*/
@QuarkusTest
@WithTestResource(value = S3Minio.class)
@WithTestResource(value = SourcePostgresqlDB.class)
class IcebergTableOperatorTest extends BaseSparkTest {

static String testTable = "inventory.test_table_operator";
Expand Down Expand Up @@ -69,6 +71,7 @@ public void testIcebergTableOperator() {
.destination(testTable)
.addKeyField("id", 1)
.addField("data", "record1")
.addField("__op", "c")
.addField("preferences", "feature1", true)
.build()
);
Expand All @@ -77,17 +80,20 @@ public void testIcebergTableOperator() {
.destination(testTable)
.addKeyField("id", 1)
.addField("data", "record1")
.addField("__op", "c")
.build()
);
events.add(new IcebergChangeEventBuilder()
.destination(testTable)
.addKeyField("id", 2)
.addField("data", "record2")
.addField("__op", "c")
.build()
);
events.add(new IcebergChangeEventBuilder()
.destination(testTable)
.addKeyField("id", 3)
.addField("__op", "c")
.addField("user_name", "Alice")
.addField("data", "record3_adding_field")
.build()
Expand Down

0 comments on commit 3c678ea

Please sign in to comment.