private static String formatFrame(WindowFrame windowFrame) {
    StringBuilder builder = new StringBuilder();

    builder.append(windowFrame.getType().toString()).append(' ');

    if (windowFrame.getEnd().isPresent()) {
      builder
          .append("BETWEEN ")
          .append(formatFrameBound(windowFrame.getStart()))
          .append(" AND ")
          .append(formatFrameBound(windowFrame.getEnd().get()));
    } else {
      builder.append(formatFrameBound(windowFrame.getStart()));
    }

    return builder.toString();
  }
Returns the formatted `LISTAGG` function call corresponding to the specified node.

<p>During the parsing of the syntax tree, the `LISTAGG` expression is synthetically converted
to a function call. This method formats the specified {@link FunctionCall} node to correspond
to the standardised syntax of the `LISTAGG` expression.

@param node the `LISTAGG` function call
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/util/ExpressionFormatter.java