Package io.debezium.connector.jdbc.e2e
Class AbstractJdbcSinkPipelineIT
java.lang.Object
io.debezium.connector.jdbc.e2e.AbstractJdbcSinkIT
io.debezium.connector.jdbc.e2e.AbstractJdbcSinkPipelineIT
- Direct Known Subclasses:
JdbcSinkPipelineToDb2IT,JdbcSinkPipelineToMySqlIT,JdbcSinkPipelineToOracleIT,JdbcSinkPipelineToPostgresIT,JdbcSinkPipelineToSqlServerIT
@ExtendWith(SourcePipelineInvocationContextProvider.class)
public abstract class AbstractJdbcSinkPipelineIT
extends AbstractJdbcSinkIT
An integration test class that holds all JDBC sink pipeline integration tests.
NOTE: It is important that all sink pipeline tests primarily exist in this class unless there specific sink database tests that are in the derived sink class implementations to minimize the resource start and tear down steps.
NOTE: All methods in this class should be annotated with TestTemplate as each method
will be invoked multiple times with various Source and Sink objects, which
allows the tests to verify that they successfully run with a variety of configurations.
- Author:
- Chris Cranford
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceprotected static interfaceprotected static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.debezium.connector.jdbc.naming.TableNamingStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyJdbcSourceConverter(Source source, io.debezium.testing.testcontainers.ConnectorConfiguration config, String booleanSelector, String realSelector, String stringSelector) protected voidassertCharDataType(Source source, Sink sink, String dataType, boolean nationalized) protected voidassertCharWithLengthDataType(Source source, Sink sink, String dataType, int length, boolean nationalized) protected voidassertColumn(Sink sink, org.apache.kafka.connect.sink.SinkRecord record, String columnName, String columnType) protected voidassertColumn(Sink sink, org.apache.kafka.connect.sink.SinkRecord record, String columnName, String columnType, int length) protected voidassertColumn(Sink sink, org.apache.kafka.connect.sink.SinkRecord record, String columnName, String columnType, int precision, int scale) protected <T> voidassertDataType(Source source, Sink sink, String typeName, List<T> values, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<T> columnReader) protected <T> voidassertDataType(Source source, Sink sink, String typeName, List<T> values, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<T> columnReader) protected <T,U> void assertDataType(Source source, Sink sink, String typeName, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected <T,U> void assertDataType(Source source, Sink sink, String typeName, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected <T,U> void assertDataTypeNonKeyOnly(Source source, Sink sink, String typeName, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected <T,U> void assertDataTypeNonKeyOnly(Source source, Sink sink, String typeName, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected <T> voidassertDataTypes(Source source, Sink sink, List<String> typeNames, List<T> values, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<T> columnReader) protected <T,U> void assertDataTypes(Source source, Sink sink, List<String> typeNames, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected <T,U> void assertDataTypes(Source source, Sink sink, List<String> typeNames, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected <T,U> void assertDataTypesNonKeyOnly(Source source, Sink sink, List<String> typeNames, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected <T,U> void assertDataTypesNonKeyOnly(Source source, Sink sink, List<String> typeNames, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected voidassertVarcharDataType(Source source, Sink sink, String dataType, int length, boolean nationalized) protected StringbinaryValue(Source source, String dataType, String value) protected byte[]byteArrayPadded(String value, int padding) protected Stringprotected <U> voidconsumeAndAssert(Sink sink, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) protected StringcreateTableFromTypes(Source source, String tableName, boolean keys, List<String> typeNames, List<?> values) protected Stringprotected abstract StringgetBinaryType(Source source, String sourceDataType) protected abstract Stringprotected abstract Stringprotected abstract StringgetCharType(Source source, boolean key, boolean nationalized) protected StringgetDataTypeWithCollation(Source source, String dataType, boolean nationalized) protected abstract Stringprotected abstract Stringprotected PropertiesgetDefaultSinkConfig(Sink sink) protected abstract StringgetEnumType(Source source, boolean key) protected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract StringgetIntervalType(Source source, boolean numeric) protected StringgetJsonbType(Source source) protected abstract StringgetJsonType(Source source) protected intprotected abstract StringgetSetType(Source source, boolean key) private StringgetSinkTable(org.apache.kafka.connect.sink.SinkRecord record, Sink sink) protected StringgetStringType(Source source, boolean key, boolean nationalized) protected abstract StringgetStringType(Source source, boolean key, boolean nationalized, boolean maxLength) protected Stringprotected abstract StringgetTextType(boolean nationalized) protected abstract StringgetTimestampType(Source source, boolean key, int precision) protected TimestampgetTimestampUtc(ResultSet rs, int index) protected abstract StringgetTimestampWithTimezoneType(Source source, boolean key, int precision) protected abstract StringgetTimeType(Source source, boolean key, int precision) protected abstract Stringprotected abstract StringgetUuidType(Source source, boolean key) protected abstract Stringprotected abstract StringgetXmlType(Source source) protected abstract Stringprotected booleanprotected booleanisLobTypeName(String typeName) protected StringpointValue(ResultSet rs, int index) protected voidregisterSourceConnector(Source source, String tableName) protected voidregisterSourceConnector(Source source, List<String> typeName, String tableName, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster) protected voidregisterSourceConnector(Source source, List<String> typeNames, String tableName, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, String createSql, String insertSql) protected booleanskipDefaultValues(String typeName) voidtestBigIntDataType(Source source, Sink sink) voidtestBigIntWithSizeDataType(Source source, Sink sink) voidtestBigSerialDataType(Source source, Sink sink) voidtestBinaryDataType(Source source, Sink sink) voidtestBinaryDoubleDataType(Source source, Sink sink) voidtestBinaryFloatDataType(Source source, Sink sink) voidtestBinaryHandlingModeBase64(Source source, Sink sink) voidtestBinaryHandlingModeBase64UrlSafe(Source source, Sink sink) voidtestBinaryHandlingModeHex(Source source, Sink sink) voidtestBitDataType(Source source, Sink sink) voidtestBitVaryingDataType(Source source, Sink sink) voidtestBitVaryingDataTypeNotInKey(Source source, Sink sink) voidtestBitWithSizeDataType(Source source, Sink sink) voidtestBitWithSizeDataTypeNotInKey(Source source, Sink sink) voidtestBlobDataType(Source source, Sink sink) voidtestBooleanDataType(Source source, Sink sink) voidtestByteaDataType(Source source, Sink sink) voidtestCaseInsensitiveDataType(Source source, Sink sink) voidtestCharacterDataType(Source source, Sink sink) voidtestCharacterVaryingDataType(Source source, Sink sink) voidtestCharacterWithLengthDataType(Source source, Sink sink) voidtestCharDataType(Source source, Sink sink) voidtestCharWithLengthDataType(Source source, Sink sink) voidtestClobDataType(Source source, Sink sink) voidtestDateDataType(Source source, Sink sink) voidtestDaterangeDataType(Source source, Sink sink) voidtestDateTime2DataType(Source source, Sink sink) voidtestDateTime2WithPrecisionDataType(Source source, Sink sink) voidtestDateTimeDataType(Source source, Sink sink) voidtestDateTimeOffsetDataType(Source source, Sink sink) voidtestDateTimeOffsetWithPrecisionDataType(Source source, Sink sink) voidtestDateTimeWithPrecisionDataType(Source source, Sink sink) voidtestDecimalDataType(Source source, Sink sink) voidtestDecimalHandlingModeDouble(Source source, Sink sink) voidtestDecimalHandlingModeString(Source source, Sink sink) voidtestDecimalWithPrecisionAndNegativeScaleDataType(Source source, Sink sink) voidtestDecimalWithPrecisionAndScaleDataType(Source source, Sink sink) voidtestDecimalWithPrecisionDataType(Source source, Sink sink) voidtestDoubleDataType(Source source, Sink sink) voidtestDoublePrecisionDataType(Source source, Sink sink) voidtestDoubleWithPrecisionAndScaleDataType(Source source, Sink sink) voidtestDoubleWithPrecisionDataType(Source source, Sink sink) voidtestEnumDataType(Source source, Sink sink) voidtestFloatDataType(Source source, Sink sink) voidtestFloatWithPrecisionAndScaleDataType(Source source, Sink sink) voidtestFloatWithPrecisionDataType(Source source, Sink sink) voidtestHstoreDataType(Source source, Sink sink) voidtestHstoreWithMapModeDataType(Source source, Sink sink) voidtestInetDataType(Source source, Sink sink) voidtestInt4RangeDataType(Source source, Sink sink) voidtestInt8RangeDataType(Source source, Sink sink) voidtestIntDataType(Source source, Sink sink) voidtestIntegerDataType(Source source, Sink sink) voidtestIntegerWithSizeDataType(Source source, Sink sink) voidtestIntervalDataTypeIntervalHandlingModeNumeric(Source source, Sink sink) voidtestIntervalDataTypeIntervalHandlingModeString(Source source, Sink sink) voidvoidvoidvoidvoidtestJsonbDataType(Source source, Sink sink) voidtestJsonDataType(Source source, Sink sink) voidtestLongBlobDataType(Source source, Sink sink) voidtestLongTextDataType(Source source, Sink sink) voidtestLtreeDataType(Source source, Sink sink) voidtestMediumBlobDataType(Source source, Sink sink) voidtestMediumIntDataType(Source source, Sink sink) voidtestMediumIntWithSizeDataType(Source source, Sink sink) voidtestMediumTextDataType(Source source, Sink sink) voidtestMoneyDataType(Source source, Sink sink) voidtestNanoTimeDataType(Source source, Sink sink) voidtestNationalizedCharacterDataType(Source source, Sink sink) voidtestNationalizedCharacterWithLengthDataType(Source source, Sink sink) voidtestNationalizedCharDataType(Source source, Sink sink) voidtestNationalizedCharWithLengthDataType(Source source, Sink sink) voidtestNCharacterVaryingDataType(Source source, Sink sink) voidtestNClobDataType(Source source, Sink sink) voidtestNTextDataType(Source source, Sink sink) voidtestNumberDataType(Source source, Sink sink) voidtestNumberWithPrecisionAndNegativeScaleDataType(Source source, Sink sink) voidtestNumberWithPrecisionAndScaleDataType(Source source, Sink sink) voidtestNumberWithPrecisionDataType(Source source, Sink sink) voidtestNumericDataType(Source source, Sink sink) voidtestNumericWithPrecisionAndNegativeScaleDataType(Source source, Sink sink) voidtestNumericWithPrecisionAndScaleDataType(Source source, Sink sink) voidtestNumericWithPrecisionDataType(Source source, Sink sink) voidtestNumrangeDataType(Source source, Sink sink) voidtestNVarchar2DataType(Source source, Sink sink) voidtestNVarcharDataType(Source source, Sink sink) voidtestOidDataType(Source source, Sink sink) voidtestRealDataType(Source source, Sink sink) voidtestRealDataTypeTreatAsFloat(Source source, Sink sink) voidtestRealWithPrecisionAndScaleDataType(Source source, Sink sink) voidtestRealWithPrecisionDataType(Source source, Sink sink) voidtestSerialDataType(Source source, Sink sink) voidtestSetDataType(Source source, Sink sink) voidtestSmallDateTimeDataType(Source source, Sink sink) voidtestSmallIntDataType(Source source, Sink sink) voidtestSmallIntWithSizeDataType(Source source, Sink sink) voidtestSmallMoneyDataType(Source source, Sink sink) voidtestSmallSerialDataType(Source source, Sink sink) voidtestTextDataType(Source source, Sink sink) voidtestTimeDataType(Source source, Sink sink) voidtestTimestampDataType(Source source, Sink sink) voidtestTimestampTzDataType(Source source, Sink sink) voidtestTimestampWithLocalTimeZoneDataType(Source source, Sink sink) voidtestTimestampWithPrecisionDataType(Source source, Sink sink) voidtestTimestampWithTimeZoneDataType(Source source, Sink sink) voidtestTimeWithPrecisionDataType(Source source, Sink sink) voidtestTimeWithTimeZoneDataType(Source source, Sink sink) voidtestTinyBlobDataType(Source source, Sink sink) voidtestTinyIntDataType(Source source, Sink sink) voidtestTinyIntWithSizeDataType(Source source, Sink sink) voidtestTinyTextDataType(Source source, Sink sink) voidtestTsrangeDataType(Source source, Sink sink) voidtestTstzrangeDataType(Source source, Sink sink) voidtestUuidDataType(Source source, Sink sink) voidtestVarBinaryDataType(Source source, Sink sink) voidtestVarchar2DataType(Source source, Sink sink) voidtestVarcharDataType(Source source, Sink sink) voidtestXmlDataType(Source source, Sink sink) voidtestYearDataType(Source source, Sink sink) Methods inherited from class io.debezium.connector.jdbc.e2e.AbstractJdbcSinkIT
afterEach, consumeSinkRecord, consumeSinkRecords, getCurrentSinkConfig, getSinkRecordFromConsumerRecord, getSourceConnectorConfig, startSink, stopSink
-
Field Details
-
tableNamingStrategy
private final io.debezium.connector.jdbc.naming.TableNamingStrategy tableNamingStrategy
-
-
Constructor Details
-
AbstractJdbcSinkPipelineIT
public AbstractJdbcSinkPipelineIT()
-
-
Method Details
-
testBitDataType
- Throws:
Exception
-
testBitWithSizeDataType
- Throws:
Exception
-
testBitWithSizeDataTypeNotInKey
@TestTemplate public void testBitWithSizeDataTypeNotInKey(Source source, Sink sink) throws Exception - Throws:
Exception
-
testBitVaryingDataType
- Throws:
Exception
-
testBitVaryingDataTypeNotInKey
- Throws:
Exception
-
testBooleanDataType
- Throws:
Exception
-
testTinyIntDataType
- Throws:
Exception
-
testTinyIntWithSizeDataType
- Throws:
Exception
-
testSmallIntDataType
- Throws:
Exception
-
testSmallIntWithSizeDataType
- Throws:
Exception
-
testSmallSerialDataType
- Throws:
Exception
-
testSerialDataType
- Throws:
Exception
-
testBigSerialDataType
- Throws:
Exception
-
testMediumIntDataType
- Throws:
Exception
-
testMediumIntWithSizeDataType
- Throws:
Exception
-
testIntDataType
- Throws:
Exception
-
testIntegerDataType
- Throws:
Exception
-
testIntegerWithSizeDataType
- Throws:
Exception
-
testBigIntDataType
- Throws:
Exception
-
testBigIntWithSizeDataType
- Throws:
Exception
-
testNumberDataType
- Throws:
Exception
-
testNumberWithPrecisionDataType
@TestTemplate public void testNumberWithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testNumberWithPrecisionAndScaleDataType
@TestTemplate public void testNumberWithPrecisionAndScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testNumberWithPrecisionAndNegativeScaleDataType
@TestTemplate public void testNumberWithPrecisionAndNegativeScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testNumericDataType
- Throws:
Exception
-
testNumericWithPrecisionDataType
@TestTemplate public void testNumericWithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testNumericWithPrecisionAndScaleDataType
@TestTemplate public void testNumericWithPrecisionAndScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testNumericWithPrecisionAndNegativeScaleDataType
@TestTemplate public void testNumericWithPrecisionAndNegativeScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testDecimalDataType
- Throws:
Exception
-
testDecimalWithPrecisionDataType
@TestTemplate public void testDecimalWithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testDecimalWithPrecisionAndScaleDataType
@TestTemplate public void testDecimalWithPrecisionAndScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testDecimalWithPrecisionAndNegativeScaleDataType
@TestTemplate public void testDecimalWithPrecisionAndNegativeScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testRealDataType
- Throws:
Exception
-
testRealDataTypeTreatAsFloat
- Throws:
Exception
-
testRealWithPrecisionDataType
@TestTemplate @Disabled("Not supported by any of our current source connectors") public void testRealWithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testRealWithPrecisionAndScaleDataType
@TestTemplate public void testRealWithPrecisionAndScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testFloatDataType
- Throws:
Exception
-
testFloatWithPrecisionDataType
- Throws:
Exception
-
testFloatWithPrecisionAndScaleDataType
@TestTemplate public void testFloatWithPrecisionAndScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testDoubleDataType
- Throws:
Exception
-
testDoubleWithPrecisionDataType
@TestTemplate @Disabled("Not supported by any of our currently supported source databases") public void testDoubleWithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testDoubleWithPrecisionAndScaleDataType
@TestTemplate public void testDoubleWithPrecisionAndScaleDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testDoublePrecisionDataType
- Throws:
Exception
-
testBinaryFloatDataType
- Throws:
Exception
-
testBinaryDoubleDataType
- Throws:
Exception
-
testSmallMoneyDataType
- Throws:
Exception
-
testMoneyDataType
- Throws:
Exception
-
testDecimalHandlingModeDouble
- Throws:
Exception
-
testDecimalHandlingModeString
- Throws:
Exception
-
testCharDataType
- Throws:
Exception
-
testCharacterDataType
- Throws:
Exception
-
testCharWithLengthDataType
- Throws:
Exception
-
testCharacterWithLengthDataType
@TestTemplate public void testCharacterWithLengthDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testNationalizedCharDataType
- Throws:
Exception
-
testNationalizedCharacterDataType
@TestTemplate public void testNationalizedCharacterDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testNationalizedCharWithLengthDataType
@TestTemplate public void testNationalizedCharWithLengthDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testNationalizedCharacterWithLengthDataType
@TestTemplate public void testNationalizedCharacterWithLengthDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testVarcharDataType
- Throws:
Exception
-
testVarchar2DataType
- Throws:
Exception
-
testNVarcharDataType
- Throws:
Exception
-
testNVarchar2DataType
- Throws:
Exception
-
testCharacterVaryingDataType
- Throws:
Exception
-
testNCharacterVaryingDataType
- Throws:
Exception
-
testTinyTextDataType
- Throws:
Exception
-
testMediumTextDataType
- Throws:
Exception
-
testLongTextDataType
- Throws:
Exception
-
testTextDataType
- Throws:
Exception
-
testNTextDataType
- Throws:
Exception
-
testClobDataType
- Throws:
Exception
-
testNClobDataType
- Throws:
Exception
-
testBinaryDataType
- Throws:
Exception
-
testVarBinaryDataType
- Throws:
Exception
-
testTinyBlobDataType
- Throws:
Exception
-
testMediumBlobDataType
- Throws:
Exception
-
testLongBlobDataType
- Throws:
Exception
-
testBlobDataType
- Throws:
Exception
-
testBinaryHandlingModeBase64
- Throws:
Exception
-
testBinaryHandlingModeBase64UrlSafe
@TestTemplate public void testBinaryHandlingModeBase64UrlSafe(Source source, Sink sink) throws Exception - Throws:
Exception
-
testBinaryHandlingModeHex
- Throws:
Exception
-
testJsonDataType
- Throws:
Exception
-
testJsonbDataType
- Throws:
Exception
-
testXmlDataType
- Throws:
Exception
-
testUuidDataType
- Throws:
Exception
-
testEnumDataType
- Throws:
Exception
-
testSetDataType
- Throws:
Exception
-
testYearDataType
- Throws:
Exception
-
testDateDataType
- Throws:
Exception
-
testTimeDataType
- Throws:
Exception
-
testTimeWithPrecisionDataType
- Throws:
Exception
-
testNanoTimeDataType
@TestTemplate @Disabled("DBZ-6222 - SQL Server presently does not emit TIME(n) fields with micro or or nano second precision properly") public void testNanoTimeDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testTimestampDataType
- Throws:
Exception
-
testTimestampWithPrecisionDataType
@TestTemplate public void testTimestampWithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testTimestampTzDataType
- Throws:
Exception
-
testTimestampWithTimeZoneDataType
@TestTemplate public void testTimestampWithTimeZoneDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testTimestampWithLocalTimeZoneDataType
@TestTemplate public void testTimestampWithLocalTimeZoneDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testTimeWithTimeZoneDataType
- Throws:
Exception
-
testDateTimeDataType
- Throws:
Exception
-
testDateTimeWithPrecisionDataType
@TestTemplate public void testDateTimeWithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testDateTime2DataType
- Throws:
Exception
-
testDateTime2WithPrecisionDataType
@TestTemplate public void testDateTime2WithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testDateTimeOffsetDataType
- Throws:
Exception
-
testDateTimeOffsetWithPrecisionDataType
@TestTemplate public void testDateTimeOffsetWithPrecisionDataType(Source source, Sink sink) throws Exception - Throws:
Exception
-
testSmallDateTimeDataType
- Throws:
Exception
-
testIntervalDataTypeIntervalHandlingModeNumeric
@TestTemplate public void testIntervalDataTypeIntervalHandlingModeNumeric(Source source, Sink sink) throws Exception - Throws:
Exception
-
testIntervalDataTypeIntervalHandlingModeString
@TestTemplate public void testIntervalDataTypeIntervalHandlingModeString(Source source, Sink sink) throws Exception - Throws:
Exception
-
testIntervalDayToSecondDataTypeIntervalHandlingModeNumeric
@TestTemplate public void testIntervalDayToSecondDataTypeIntervalHandlingModeNumeric(Source source, Sink sink) throws Exception - Throws:
Exception
-
testIntervalDayToSecondDataTypeIntervalHandlingModeString
@TestTemplate public void testIntervalDayToSecondDataTypeIntervalHandlingModeString(Source source, Sink sink) throws Exception - Throws:
Exception
-
testIntervalYearToMonthDataTypeIntervalHandlingModeNumeric
@TestTemplate public void testIntervalYearToMonthDataTypeIntervalHandlingModeNumeric(Source source, Sink sink) throws Exception - Throws:
Exception
-
testIntervalYearToMonthDataTypeIntervalHandlingModeString
@TestTemplate public void testIntervalYearToMonthDataTypeIntervalHandlingModeString(Source source, Sink sink) throws Exception - Throws:
Exception
-
testByteaDataType
- Throws:
Exception
-
testOidDataType
- Throws:
Exception
-
testLtreeDataType
- Throws:
Exception
-
testCaseInsensitiveDataType
- Throws:
Exception
-
testInetDataType
- Throws:
Exception
-
testInt4RangeDataType
- Throws:
Exception
-
testInt8RangeDataType
- Throws:
Exception
-
testNumrangeDataType
- Throws:
Exception
-
testTsrangeDataType
- Throws:
Exception
-
testTstzrangeDataType
- Throws:
Exception
-
testDaterangeDataType
- Throws:
Exception
-
testHstoreDataType
- Throws:
Exception
-
testHstoreWithMapModeDataType
- Throws:
Exception
-
getMaxDecimalPrecision
protected int getMaxDecimalPrecision() -
getBooleanType
-
getBitsDataType
-
getInt8Type
-
getInt16Type
-
getInt32Type
-
getInt64Type
-
getVariableScaleDecimalType
-
getDecimalType
-
getFloat32Type
-
getFloat64Type
-
getCharType
-
getStringType
-
getStringType
-
getTextType
-
getTextType
-
getBinaryType
-
getJsonType
-
getJsonbType
-
getXmlType
-
getUuidType
-
getEnumType
-
getSetType
-
getYearType
-
getDateType
-
getTimeType
-
getTimeWithTimezoneType
-
getTimestampType
-
getTimestampWithTimezoneType
-
getIntervalType
-
isBitCoercedToBoolean
protected boolean isBitCoercedToBoolean() -
getTimestampUtc
- Throws:
SQLException
-
bitValues
-
charValue
-
binaryValue
-
byteArrayPadded
-
dateValue
-
pointValue
- Throws:
SQLException
-
registerSourceConnector
-
getSinkTable
-
getDefaultSinkConfig
-
assertColumn
-
assertColumn
-
assertColumn
-
assertDataType
protected <T> void assertDataType(Source source, Sink sink, String typeName, List<T> values, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<T> columnReader) throws Exception - Throws:
Exception
-
assertDataTypes
protected <T> void assertDataTypes(Source source, Sink sink, List<String> typeNames, List<T> values, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<T> columnReader) throws Exception - Throws:
Exception
-
assertDataType
protected <T,U> void assertDataType(Source source, Sink sink, String typeName, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
assertDataTypes
protected <T,U> void assertDataTypes(Source source, Sink sink, List<String> typeNames, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
assertDataTypeNonKeyOnly
protected <T,U> void assertDataTypeNonKeyOnly(Source source, Sink sink, String typeName, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
assertDataTypesNonKeyOnly
protected <T,U> void assertDataTypesNonKeyOnly(Source source, Sink sink, List<String> typeNames, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
assertDataType
protected <T> void assertDataType(Source source, Sink sink, String typeName, List<T> values, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<T> columnReader) throws Exception - Throws:
Exception
-
skipDefaultValues
-
assertDataType
protected <T,U> void assertDataType(Source source, Sink sink, String typeName, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
assertDataTypeNonKeyOnly
protected <T,U> void assertDataTypeNonKeyOnly(Source source, Sink sink, String typeName, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
assertDataTypesNonKeyOnly
protected <T,U> void assertDataTypesNonKeyOnly(Source source, Sink sink, List<String> typeNames, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
assertDataTypes
protected <T,U> void assertDataTypes(Source source, Sink sink, List<String> typeNames, List<T> values, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
isLobTypeName
-
createTableFromTypes
-
registerSourceConnector
protected void registerSourceConnector(Source source, List<String> typeNames, String tableName, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster, String createSql, String insertSql) throws Exception - Throws:
Exception
-
registerSourceConnector
protected void registerSourceConnector(Source source, List<String> typeName, String tableName, AbstractJdbcSinkPipelineIT.ConfigurationAdjuster configAdjuster) -
applyJdbcSourceConverter
-
consumeAndAssert
protected <U> void consumeAndAssert(Sink sink, AbstractJdbcSinkPipelineIT.DataTypeColumnAssert columnAssert, List<U> expectedValues, AbstractJdbcSinkPipelineIT.ColumnReader<U> columnReader) throws Exception - Throws:
Exception
-
assertCharDataType
protected void assertCharDataType(Source source, Sink sink, String dataType, boolean nationalized) throws Exception - Throws:
Exception
-
assertCharWithLengthDataType
protected void assertCharWithLengthDataType(Source source, Sink sink, String dataType, int length, boolean nationalized) throws Exception - Throws:
Exception
-
assertVarcharDataType
protected void assertVarcharDataType(Source source, Sink sink, String dataType, int length, boolean nationalized) throws Exception - Throws:
Exception
-
getDataTypeWithCollation
-