private boolean hasOrderByReferencesToOutputColumns(Node node) {
      return hasReferencesToScope(node, analysis, orderByScope.get());
    }
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