Skip to content

Commit 4121a31

Browse files
committed
[hotfix-35535][impala] 修复因为代码合并导致release代码无法编译
1 parent adbb5d7 commit 4121a31

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

impala/impala-sink/src/main/java/com/dtstack/flink/sql/sink/impala/ImpalaOutputFormat.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package com.dtstack.flink.sql.sink.impala;
2020

2121
import com.dtstack.flink.sql.classloader.ClassLoaderManager;
22-
import com.dtstack.flink.sql.core.rdb.util.JdbcConnectUtil;
22+
import com.dtstack.flink.sql.core.rdb.util.JdbcConnectionUtil;
2323
import com.dtstack.flink.sql.exception.ExceptionTrace;
2424
import com.dtstack.flink.sql.factory.DTThreadFactory;
2525
import com.dtstack.flink.sql.outputformat.AbstractDtRichOutputFormat;
@@ -283,8 +283,8 @@ private void executeUpdateBatch() throws SQLException {
283283
rows.clear();
284284
} catch (Exception e) {
285285
LOG.debug("impala jdbc execute batch error ", e);
286-
JdbcConnectUtil.rollBack(connection);
287-
JdbcConnectUtil.commit(connection);
286+
JdbcConnectionUtil.rollBack(connection);
287+
JdbcConnectionUtil.commit(connection);
288288
updateStatement.clearBatch();
289289
executeUpdate(connection);
290290
}
@@ -295,10 +295,10 @@ public void executeUpdate(Connection connection) {
295295
try {
296296
setRecordToStatement(updateStatement, JDBCTypeConvertUtils.getSqlTypeFromFieldType(fieldTypes), row);
297297
updateStatement.executeUpdate();
298-
JdbcConnectUtil.commit(connection);
298+
JdbcConnectionUtil.commit(connection);
299299
} catch (Exception e) {
300-
JdbcConnectUtil.rollBack(connection);
301-
JdbcConnectUtil.commit(connection);
300+
JdbcConnectionUtil.rollBack(connection);
301+
JdbcConnectionUtil.commit(connection);
302302
if (metricOutputFormat.outDirtyRecords.getCount() % DIRTY_DATA_PRINT_FREQUENCY == 0 || LOG.isDebugEnabled()) {
303303
LOG.error("record insert failed ,this row is {}", row.toString());
304304
LOG.error("", e);
@@ -510,16 +510,16 @@ private void dealBatchSqlError(List<String> rowData,
510510
Statement statement,
511511
String templateSql) {
512512
String errorMsg = "Insert into impala error. \nCause: [%s]\nRow: [%s]";
513-
JdbcConnectUtil.rollBack(connection);
514-
JdbcConnectUtil.commit(connection);
513+
JdbcConnectionUtil.rollBack(connection);
514+
JdbcConnectionUtil.commit(connection);
515515
for (String rowDatum : rowData) {
516516
String executeSql = templateSql.replace(VALUES_CONDITION, rowDatum);
517517
try {
518518
statement.execute(executeSql);
519-
JdbcConnectUtil.commit(connection);
519+
JdbcConnectionUtil.commit(connection);
520520
} catch (SQLException e) {
521-
JdbcConnectUtil.rollBack(connection);
522-
JdbcConnectUtil.commit(connection);
521+
JdbcConnectionUtil.rollBack(connection);
522+
JdbcConnectionUtil.commit(connection);
523523
if (metricOutputFormat.outDirtyRecords.getCount() % DIRTY_DATA_PRINT_FREQUENCY == 0 || LOG.isDebugEnabled()) {
524524
LOG.error(
525525
String.format(

0 commit comments

Comments
 (0)