Closed liuqian1990 closed 3 months ago
delete sj.add(this.nullFormat) code;
private String record2String(Record record) {
StringJoiner sj = new StringJoiner(this.fieldDelimiter + "");
int columnNum = record.getColumnNumber();
for (int i=0; i < columnNum; i++) {
Column column = record.getColumn(i);
if (column == null || column.asString() == null) {
//sj.add(this.nullFormat);
}
assert column != null;
Column.Type type = column.getType();
if (type == Column.Type.DATE) {
SimpleDateFormat sdf = new SimpleDateFormat(this.dateFormat);
sj.add(sdf.format(column.asDate()));
} else {
sj.add(column.asString());
}
}
return sj.toString();
}
Please paste the complete running output here
Sorry addax's log has been deleted. Writing is normal, but reading is wrong now.
What happened?
A bug happened! The original table has only 29 columns
Version
4.1.3 (Default)
OS Type
Linux (Default)
Java JDK Version
Oracle JDK 1.8.0
Relevant log output