Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void validateOperations(FailureCollector collector, T dbSinkConfig, @Null
* @return ErrorDetailsProvider class name
*/
protected String getErrorDetailsProviderClassName() {
return DBErrorDetailsProvider.class.getName();
return null;
}

@Override
Expand Down Expand Up @@ -240,7 +240,9 @@ public void prepareRun(BatchSinkContext context) {
context.getArguments().get(ETLDBOutputFormat.COMMIT_BATCH_SIZE));
}
// set error details provider
context.setErrorDetailsProvider(new ErrorDetailsProviderSpec(getErrorDetailsProviderClassName()));
if (!Strings.isNullOrEmpty(getErrorDetailsProviderClassName())) {
context.setErrorDetailsProvider(new ErrorDetailsProviderSpec(getErrorDetailsProviderClassName()));
}
addOutputContext(context);
}
protected void addOutputContext(BatchSinkContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ protected SchemaReader getSchemaReader() {
* @return ErrorDetailsProvider class name
*/
protected String getErrorDetailsProviderClassName() {
return DBErrorDetailsProvider.class.getName();
return null;
}

private DriverCleanup loadPluginClassAndGetDriver(Class<? extends Driver> driverClass)
Expand Down Expand Up @@ -299,7 +299,9 @@ public void prepareRun(BatchSourceContext context) throws Exception {
schema.getFields().stream().map(Schema.Field::getName).collect(Collectors.toList()));
}
// set error details provider
context.setErrorDetailsProvider(new ErrorDetailsProviderSpec(getErrorDetailsProviderClassName()));
if (!Strings.isNullOrEmpty(getErrorDetailsProviderClassName())) {
context.setErrorDetailsProvider(new ErrorDetailsProviderSpec(getErrorDetailsProviderClassName()));
}
context.setInput(Input.of(sourceConfig.getReferenceName(), new SourceInputFormatProvider(
DataDrivenETLDBInputFormat.class, connectionConfigAccessor.getConfiguration())));
}
Expand Down
Loading