private void analyzeGlobalTimeConditionInShowMetaData(
      WhereCondition timeCondition, Analysis analysis) {
    Expression predicate = timeCondition.getPredicate();
    Pair<Expression, Boolean> resultPair =
        PredicateUtils.extractGlobalTimePredicate(predicate, true, true);
    if (resultPair.right) {
      throw new SemanticException(
          "Value Filter can't exist in the condition of SHOW/COUNT clause, only time condition supported");
    }
    if (resultPair.left == null) {
      throw new SemanticException(
          "Time condition can't be empty in the condition of SHOW/COUNT clause");
    }
    Expression globalTimePredicate = resultPair.left;
    globalTimePredicate = PredicateUtils.predicateRemoveNot(globalTimePredicate);
    analysis.setGlobalTimePredicate(globalTimePredicate);
  }
Since we fetch raw time series schema without template(The template sequence will be treated
as a normal node, not a device+templateId. This means that all nodes are what we need.). We
can use ALL_MATCH_PATTERN to get result.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java