public static Pair<Boolean, UnsupportedViewException> checkExpressionList(
      List<Expression> expressionsList) {
    CollectAggregationExpressionsVisitor collectAggExpVisitor =
        new CollectAggregationExpressionsVisitor();

    for (Expression expression : expressionsList) {
      List<Expression> aggList = collectAggExpVisitor.process(expression, null);
      if (!aggList.isEmpty()) {
        return new Pair<>(false, new ViewContainsAggregationException(aggList.get(0).toString()));
      }
    }
    return new Pair<>(true, null);
  }
Check all expression in this list, ensure that the views created using them are legal. Check
follows above rules: 1. A legal view can NOT contain aggregation functions.

@return If all check passed, return true; else return false with failure message.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/view/ViewPaths.java