@Override
    protected Boolean visitLogicalExpression(LogicalExpression node, Void context) {
      return node.getTerms().stream().allMatch(item -> process(item, context));
    }
visitor returns true if all expressions are constant with respect to the group.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/analyzer/AggregationAnalyzer.java