Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
leaves12138 committed May 29, 2024
1 parent d378106 commit 3995aec
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,8 @@ private Predicate createSpecificPartFilter(BinaryRow partition) {
List<Predicate> predicates = new ArrayList<>();
for (int i = 0; i < partitionKeys.size(); i++) {
int index = fieldNames.indexOf(partitionKeys.get(i));
predicates.add(
builder.equal(
index, InternalRowUtils.get(partition, i, rowType.getTypeAt(index))));
Object value = InternalRowUtils.get(partition, i, rowType.getTypeAt(index));
predicates.add(value == null ? builder.isNull(index) : builder.equal(index, value));
}
return PredicateBuilder.and(predicates);
}
Expand Down

0 comments on commit 3995aec

Please sign in to comment.