Skip to content

Commit

Permalink
[Hotfix][connector-v2][clickhouse] Fixed an out-of-order BUG with out…
Browse files Browse the repository at this point in the history
…put data fields of clickhouse-sink (apache#5346)
  • Loading branch information
wowzx authored and 4chicat committed Dec 14, 2023
1 parent 3be869e commit c6aa4a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ private boolean supportReplacingMergeTreeTableUpsert() {

private String[] getDefaultProjectionFields() {
List<String> fieldNames = Arrays.asList(rowType.getFieldNames());
return clickhouseTableSchema.keySet().stream()
.filter(fieldNames::contains)
return fieldNames.stream()
.filter(clickhouseTableSchema::containsKey)
.toArray(String[]::new);
}

Expand Down

0 comments on commit c6aa4a6

Please sign in to comment.