private static boolean checkIsTimeFilter(
      Expression timeExpression, String timeColumnName, Expression valueExpression) {
    return isTimeColumn(timeExpression, timeColumnName) && valueExpression instanceof LongLiteral;
  }
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