Skip to content

Commit

Permalink
reduce unless code
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Aug 18, 2023
1 parent 2e03bb8 commit b3d911e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private void initColumns(FileLoadScanNode.ParamCreateContext context, Analyzer a
.filter(c -> c.getColumnName().equalsIgnoreCase(finalSequenceCol)).findAny();
// if `columnDescs.descs` is empty, that means it's not a partial update load, and user not specify
// column name.
if (foundCol.isPresent() || columnDescs.descs.isEmpty() || shouldAddSequenceColumn(columnDescs)) {
if (foundCol.isPresent() || shouldAddSequenceColumn(columnDescs)) {
columnDescs.descs.add(new ImportColumnDesc(Column.SEQUENCE_COL,
new SlotRef(null, sequenceCol)));
} else if (!fileGroupInfo.isPartialUpdate()) {
Expand Down

0 comments on commit b3d911e

Please sign in to comment.