Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
jw-itq authored and Hisoka-X committed Nov 15, 2024
1 parent d4c86e3 commit 82e6f6a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ protected void processSchemaChangeEvent(AlterTableColumnEvent event) throws IOEx
columns.stream()
.filter(column -> afterColumn.equals(column.getName()))
.findFirst();
if (!columnOptional.isPresent()) {
columns.add(addColumn);
break;
}
columnOptional.ifPresent(
column -> {
int index = columns.indexOf(column);
Expand Down

0 comments on commit 82e6f6a

Please sign in to comment.