public static long getLongValue(Expression expression) {
    return ((LongLiteral) expression).getParsedValue();
  }
The caller must make sure that the Expression only contains valid time predicate
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/analyzer/predicate/ConvertPredicateToTimeFilterVisitor.java