Skip to content

Commit

Permalink
#14 jdbc connection for candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoscw committed Aug 17, 2018
1 parent c62c10f commit a52e8f1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1102,8 +1102,8 @@ public List<Map<String, Object>> selectCandidateQuery(CandidateQueryRequest quer
LinkIngestionInfo ingestionInfo = (LinkIngestionInfo) metaDataSource.getIngestionInfo();

// TODO: 중복 코드를 해결 필요
JdbcDataConnection realConnection = jdbcDataConnection == null ?
ingestionInfo.getConnection() : jdbcDataConnection;
JdbcDataConnection realConnection = (JdbcDataConnection) metaDataSource.getJdbcConnectionForIngestion();

if (realConnection instanceof MySQLConnection
|| realConnection instanceof HiveConnection
|| realConnection instanceof PrestoConnection) {
Expand Down

0 comments on commit a52e8f1

Please sign in to comment.