code: function points_from_es_aggr_resp(response, info) {
      if (info.grouping.length > 0 || _is_date_histogram(response.aggregations)) {
          return points_from_grouped_response(response, info);
      } else {
          return points_from_ungrouped_response(response, info);
      }
  }
docs: The function below takes an ES response that includes aggregations and builds a corresponding Juttle result (i.e., an array of points).