public static Filter convertPredicateToTimeFilter(Expression predicate) {
    if (predicate == null) {
      return null;
    }
    return predicate.accept(new ConvertPredicateToTimeFilterVisitor(), null);
  }
Convert the given predicate to time filter.

<p>Note: the supplied predicate must not contain any instances of the not() operator as this is
not supported by this filter. The supplied predicate should first be run through {@link
PredicateUtils#predicateRemoveNot(Expression)} to rewrite it in a form that doesn't make use of
the not() operator.

@param predicate given predicate
@return the time filter converted from the given predicate
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/PredicateUtils.java