public static Pair<Expression, Boolean> extractGlobalTimeFilter(
      Expression predicate, String timeColumnName) {
    return new GlobalTimePredicateExtractVisitor()
        .process(
            predicate, new GlobalTimePredicateExtractVisitor.Context(true, true, timeColumnName));
  }
Extract global time predicate from query predicate.

@param predicate raw query predicate
@return Pair, left is globalTimePredicate, right is if hasValueFilter.
@throws UnknownExpressionTypeException unknown expression type
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/ir/GlobalTimePredicateExtractVisitor.java