public static Expression reversePredicate(Expression predicate) {
    return new ReversePredicateVisitor().process(predicate, null);
  }
Converts a predicate to its logical inverse. The returned predicate should be equivalent to
not(p), but without the use of a not() operator.

<p>See also {@link PredicateUtils#predicateRemoveNot(Expression)}, which can remove the use of
all not() operators without inverting the overall predicate.

@param predicate given predicate
@return the predicate after reversing
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/PredicateUtils.java