Skip to content

ESQL QueryRequest wrong params type #5083

@jedrazb

Description

@jedrazb

🐛 Wrong type

esql _query API

https://github.com/elastic/elasticsearch-specification/blob/main/specification/esql/query/QueryRequest.ts#L90

The param should support either list of params or list of named params, see docs: https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql-rest#esql-rest-params

Definition

If possible provide a snippet with the fix.

+ type NamedFieldValue = {
+   [key: string]: FieldValue
+}

export interface EsqlQueryRequest extends RequestBase {
    ...
-   params?: FieldValue[];
+   params?: FieldValue[] | NamedFieldValue []
 }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions