Skip to content

Commit

Permalink
Revert "[#92] Connector changes to support composite types (#30)"
Browse files Browse the repository at this point in the history
This reverts commit 53992d8.
  • Loading branch information
vaibhav-yb authored Nov 22, 2022
1 parent 53992d8 commit 28b5923
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 121 deletions.
1 change: 0 additions & 1 deletion src/main/java/io/debezium/connector/yugabytedb/PgOid.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ public final class PgOid extends Oid {
public static final int INT8RANGE_OID = 3926;
public static final int INT8RANGE_ARRAY = 3927;
public static final int ENUM_OID = 3500;
public static final int RECORD_OID = 2249;
}
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ public SchemaBuilder schemaBuilder(Column column) {
case PgOid.NUM_RANGE_OID:
case PgOid.INT8RANGE_OID:
case PgOid.ENUM_OID:
case PgOid.RECORD_OID:
return SchemaBuilder.string();
case PgOid.UUID:
return Uuid.builder();
Expand Down Expand Up @@ -394,7 +393,6 @@ public ValueConverter converter(Column column, Field fieldDefn) {
case PgOid.NUM_RANGE_OID:
case PgOid.INT8RANGE_OID:
case PgOid.ENUM_OID:
case PgOid.RECORD_OID:
return data -> convertString(column, fieldDefn, data);
case PgOid.POINT:
return data -> convertPoint(column, fieldDefn, data);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.jupiter.api.Disabled;
import org.testcontainers.containers.YugabyteYSQLContainer;

import io.debezium.config.Configuration;
import io.debezium.connector.yugabytedb.common.YugabyteDBTestBase;
import io.debezium.connector.yugabytedb.transforms.YBExtractNewRecordState;
import io.debezium.transforms.ExtractNewRecordStateConfigDefinition;
import io.debezium.util.Strings;

/**
* Basic unit tests to check the behaviour with YugabyteDB datatypes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
public class YugabyteDBTestBase extends AbstractConnectorTest {
public void awaitUntilConnectorIsReady() throws Exception {
Awaitility.await()
.pollDelay(Duration.ofSeconds(10))
.atMost(Duration.ofSeconds(15))
.pollDelay(Duration.ofSeconds(5))
.atMost(Duration.ofSeconds(10))
.until(() -> {
return engine.isRunning();
if (engine.isRunning()) {
return true;
} else {
return false;
}
});
}
}
2 changes: 1 addition & 1 deletion src/test/resources/drop_tables_and_databases.ddl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS all_types;
DROP TABLE IF EXISTS test_enum;
DROP TABLE IF EXISTS composite_types_table;
DROP DATABASE IF EXISTS secondary_database;

0 comments on commit 28b5923

Please sign in to comment.