Skip to content

Commit b704ab0

Browse files
Fix EsqlResults type to match the actual output (#4515) (#4570)
(cherry picked from commit 5572fbe) Co-authored-by: Stanislav Malyshev <[email protected]>
1 parent f7f3efe commit b704ab0

File tree

5 files changed

+74
-46
lines changed

5 files changed

+74
-46
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 16 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 16 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 35 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/esql/_types/EsqlResult.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { FieldValue, Id, IndexName, NodeId } from '@_types/common'
20+
import { FieldValue, IndexName, NodeId } from '@_types/common'
2121
import { ErrorCause } from '@_types/Errors'
2222
import { integer } from '@_types/Numeric'
2323
import { DurationValue, UnitMillis } from '@_types/Time'
@@ -67,6 +67,7 @@ export class EsqlClusterDetails {
6767
indices: string
6868
took?: DurationValue<UnitMillis>
6969
_shards?: EsqlShardInfo
70+
failures?: EsqlShardFailure[]
7071
}
7172

7273
export enum EsqlClusterStatus {
@@ -82,12 +83,11 @@ export class EsqlShardInfo {
8283
successful?: integer
8384
skipped?: integer
8485
failed?: integer
85-
failures?: EsqlShardFailure[]
8686
}
8787

8888
export class EsqlShardFailure {
89-
shard: Id
90-
index: IndexName
89+
shard: integer
90+
index: IndexName | null
9191
node?: NodeId
9292
reason: ErrorCause
9393
}

0 commit comments

Comments
 (0)