performancetest/src/main/java/software/amazon/timestream/performancetest/TimestreamDataTypesPerformanceTest.java [133:147]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  void testTimeSeriesWithScalar() throws SQLException {
    final String sql = String.format(
      "WITH binned_timeseries AS (%n"
        + "    SELECT BIN(time, 30s) AS binned_timestamp, ROUND(AVG(measure_value::double), 2) AS avg_cpu_utilization%n"
        + "    FROM %s%n"
        + "    GROUP BY BIN(time, 30s)%n"
        + "), interpolated_timeseries AS (%n"
        + "    SELECT CREATE_TIME_SERIES(binned_timestamp, avg_cpu_utilization) AS ts%n"
        + "    FROM binned_timeseries%n"
        + ")%n"
        + "SELECT ts%n"
        + "FROM interpolated_timeseries", PERFORMANCE_TEST_TABLE);
    TimestreamPerformanceTest.runTest("testTimeSeriesWithScalar", sql, ResultSet::getObject, RUNS);
    TimestreamPerformanceTest.runSDK("testTimeSeriesWithScalarAgainstSDK", sql, RUNS);
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



performancetest/src/main/java/software/amazon/timestream/performancetest/TimestreamDataTypesPerformanceTest.java [151:165]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  void testTimeSeriesWithArray() throws SQLException {
    final String sql = String.format(
      "WITH binned_timeseries AS (%n"
        + "    SELECT BIN(time, 30s) AS binned_timestamp, ARRAY[AVG(measure_value::double), AVG(measure_value::double), AVG(measure_value::double)] AS avg_cpu_utilization%n"
        + "    FROM %s%n"
        + "    GROUP BY BIN(time, 30s)%n"
        + "), interpolated_timeseries AS (%n"
        + "    SELECT CREATE_TIME_SERIES(binned_timestamp, avg_cpu_utilization) AS ts%n"
        + "    FROM binned_timeseries%n"
        + ")%n"
        + "SELECT ts%n"
        + "FROM interpolated_timeseries", PERFORMANCE_TEST_TABLE);
    TimestreamPerformanceTest.runTest("testTimeSeriesWithArray", sql, ResultSet::getObject, RUNS);
    TimestreamPerformanceTest.runSDK("testTimeSeriesWithArrayAgainstSDK", sql, RUNS);
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



