private static boolean checkIsTimeFilter(Expression timeExpression, Expression valueExpression) {
    return timeExpression instanceof Identifier
        && ((Identifier) timeExpression).getValue().equalsIgnoreCase(TIME)
        && valueExpression instanceof LongLiteral;
  }
TODO consider more expression types

<p>Extract global time predicate from query predicate.

@param predicate raw query predicate
@param canRewrite determined by the father of current expression
@param isFirstOr whether it is the first LogicOrExpression encountered
@return left is global time predicate, right is whether it has value filter
@throws UnknownExpressionTypeException unknown expression type
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/PredicateUtils.java