Skip to content

Commit

Permalink
[apache#6523] fix(core): Filter null prop when init properties
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Feb 25, 2025
1 parent fb3d900 commit 1822791
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public String storageLocation() {
public Map<String, String> properties() {
return fileset.properties().entrySet().stream()
.filter(p -> !hiddenProperties.contains(p.getKey()))
.filter(entry -> entry.getKey() != null && entry.getValue() != null)
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public Column[] columns() {
public Map<String, String> properties() {
return table.properties().entrySet().stream()
.filter(p -> !hiddenProperties.contains(p.getKey()))
.filter(entry -> entry.getKey() != null && entry.getValue() != null)
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public String comment() {
public Map<String, String> properties() {
return topic.properties().entrySet().stream()
.filter(p -> !hiddenProperties.contains(p.getKey()))
.filter(entry -> entry.getKey() != null && entry.getValue() != null)
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
}

Expand Down

0 comments on commit 1822791

Please sign in to comment.