Skip to content

Commit e793e44

Browse files
committed
Merge branch 'revert-c37234c4' into '1.8_release_3.10.x'
Revert "Merge branch '1.8_release_3.10.x_jingdongfang' into 1.8_release_3.10.x" See merge request dt-insight-engine/flinkx!160
2 parents c37234c + 01eba75 commit e793e44

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

flinkx-rdb/flinkx-rdb-reader/src/main/java/com.dtstack.flinkx.rdb.inputformat/JdbcInputFormat.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import java.sql.SQLException;
5454
import java.sql.Statement;
5555
import java.sql.Timestamp;
56-
import java.text.SimpleDateFormat;
5756
import java.util.ArrayList;
5857
import java.util.HashMap;
5958
import java.util.List;
@@ -130,8 +129,6 @@ public class JdbcInputFormat extends BaseRichInputFormat {
130129

131130
protected Row lastRow = null;
132131

133-
protected transient final static ThreadLocal<SimpleDateFormat> sdf = ThreadLocal.withInitial(() -> new SimpleDateFormat("yyyyMMddHHmmss"));
134-
135132
protected String querySql;
136133

137134
/**
@@ -691,12 +688,7 @@ protected String getLocationSql(String incrementColType, String incrementCol, St
691688
} else if (ColumnType.isNumberType(incrementColType)) {
692689
endLocationSql = incrementCol + operator + location;
693690
} else {
694-
// FIXME 京东方特殊逻辑
695-
String part1 = location.substring(0, 13);
696-
String part2 = location.substring(13);
697-
String timeStr = sdf.get().format(new Date(Long.parseLong(part1))) + part2;
698-
699-
endTimeStr = String.format("'%s'",timeStr);
691+
endTimeStr = String.format("'%s'", location);
700692
endLocationSql = incrementCol + operator + endTimeStr;
701693
}
702694

0 commit comments

Comments
 (0)