Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Aug 18, 2023
1 parent c271ada commit 23d174c
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,8 @@ private boolean shouldAddSequenceColumn(LoadTaskInfo.ImportColumnDescs columnDes
if (columnDescs.descs.isEmpty()) {
return true;
}
if (columnDescs.descs.size() == 1 && columnDescs.descs.get(0).getColumnName()
.equalsIgnoreCase(Column.DELETE_SIGN)) {
return true;
}
for (ImportColumnDesc desc : columnDescs.descs) {
if (desc.getColumnName().equalsIgnoreCase(Column.SEQUENCE_COL)) {
return false;
}
}
return true;
return columnDescs.descs.size() == 1 && columnDescs.descs.get(0).getColumnName()
.equalsIgnoreCase(Column.DELETE_SIGN);
}

private TFileFormatType formatType(String fileFormat, String path) throws UserException {
Expand Down

0 comments on commit 23d174c

Please sign in to comment.