Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Zouxxyy committed Dec 19, 2024
1 parent dbaff4a commit 29fefb5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,11 @@ trait ExpressionHelper extends PredicateHelper {
}
filter
})
.toArray

if (filters.isEmpty) {
val predicates = filters.map(converter.convert(_, ignorePartialFailure)).filter(_ != null)
if (predicates.isEmpty) {
None
} else {
val predicates = filters.map(converter.convert(_, ignorePartialFailure))
Some(PredicateBuilder.and(predicates: _*))
}
}
Expand Down

0 comments on commit 29fefb5

Please sign in to comment.