Skip to content

Commit 75d5172

Browse files
committed
CDAP-15551 DB2 db plugin enhancements: all data types support + proper test coverage - remove redundant logging
1 parent 9956190 commit 75d5172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database-commons/src/main/java/io/cdap/plugin/db/batch/source/AbstractDBSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private Schema loadSchemaFromDB(Class<? extends Driver> driverClass)
158158
return loadSchemaFromDB(connection, sourceConfig.importQuery);
159159

160160
} catch (SQLException e) {
161-
LOG.error("SQLException while performing getSchema", e);
161+
// wrap exception to ensure SQLException-child instances not exposed to contexts without jdbc driver in classpath
162162
throw new SQLException(e.getMessage(), e.getSQLState(), e.getErrorCode());
163163
} finally {
164164
driverCleanup.destroy();

0 commit comments

Comments
 (0)