private void verifyNoOrderByReferencesToOutputColumns(Node node, String errorString) {
      getReferencesToScope(node, analysis, orderByScope.get())
          .findFirst()
          .ifPresent(
              expression -> {
                throw new SemanticException(errorString);
              });
    }
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