public static boolean isTimeColumn(Expression e, String timeColumnName) {
    return e instanceof SymbolReference
        && ((SymbolReference) e).getName().equalsIgnoreCase(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