@Test
  public void UDAFGroupByLevelWithAliasFailTest3() {
    try (Connection connection = EnvFactory.getEnv().getConnection();
        Statement statement = connection.createStatement()) {
      statement.executeQuery(
          "SELECT count_udaf(temperature) AS ct, count_udaf(temperature) AS ct2 "
              + "FROM root.sg1.d1 "
              + "GROUP BY LEVEL=2");
      fail("No exception thrown");
    } catch (Exception e) {
      Assert.assertTrue(e.getMessage().contains("more than one alias"));
    }
  }
One Result Column with more than one alias.
integration-test/src/test/java/org/apache/iotdb/db/it/udaf/IoTDBUDAFGroupByLevelIT.java