Skip to content

EsqlAsyncQueryStopResponse references incorrect type #6100

@lukasolson

Description

@lukasolson

The type is here:

https://github.com/elastic/elasticsearch-js/blob/0afec43f141ef038e64e0f719517018601f7e1ff/src/api/types.ts#L19065

This should be

export type EsqlAsyncQueryStopResponse = EsqlAsyncEsqlResult;

Here's a sample request/response of the stop API:

POST _query/async/FkV4OU1ySTRZUVdPZlRmaFJDUzlhX1EbY1hzcmQxdWRRZW1INHlHZDY5US1hUTo5MDIz/stop

{
  "id": "FkV4OU1ySTRZUVdPZlRmaFJDUzlhX1EbY1hzcmQxdWRRZW1INHlHZDY5US1hUTo5MDIz",
  "is_running": false,
  "took": 6423,
  "is_partial": true,
  "completion_time_in_millis": 1772818505490,
  "documents_found": 580,
  "values_loaded": 580,
  "start_time_in_millis": 1772818499067,
  "expiration_time_in_millis": 1772818563993,
  "columns": [
    {
      "name": "count",
      "type": "long"
    },
    {
      "name": "buckets",
      "type": "date"
    },
    {
      "name": "delay",
      "type": "boolean"
    }
  ],
  "values": [],
  "_clusters": {
    "total": 1,
    "successful": 0,
    "running": 0,
    "skipped": 0,
    "partial": 1,
    "failed": 0,
    "details": {
      "(local)": {
        "status": "partial",
        "indices": "filebeat-*",
        "took": 6423,
        "_shards": {
          "total": 1,
          "successful": 1,
          "skipped": 0,
          "failed": 0
        }
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions