private Expression contactGroupByWithFrom(
      final Expression expression,
      final List<PartialPath> prefixPaths,
      final MPPQueryContext queryContext) {
    List<Expression> resultExpressions =
        ExpressionAnalyzer.concatExpressionWithSuffixPaths(
            expression, prefixPaths, patternTree, queryContext);
    if (resultExpressions.size() != 1) {
      throw new IllegalStateException("Expression in group by should indicate one value");
    }
    return resultExpressions.get(0);
  }
Concat the prefix path in the SELECT clause and the suffix path in the FROM clause into a full
path pattern. And construct pattern tree.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/ConcatPathRewriter.java