Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sql/query] params doesn't support values of type: START_OBJECT #721

Open
team-ide opened this issue Dec 29, 2023 · 0 comments
Open

[sql/query] params doesn't support values of type: START_OBJECT #721

team-ide opened this issue Dec 29, 2023 · 0 comments
Labels
Area: Specification Related to the API spec used to generate client code >v7.17

Comments

@team-ide
Copy link

team-ide commented Dec 29, 2023

clients version:

<dependency>
    <groupId>co.elastic.clients</groupId>
    <artifactId>elasticsearch-java</artifactId>
    <version>7.17.16</version>
</dependency>

server version: 7.17.14

errors:


co.elastic.clients.elasticsearch._types.ElasticsearchException: [es/sql.query] failed: [x_content_parse_exception] [1:11] [sql/query] params doesn't support values of type: START_OBJECT
	at co.elastic.clients.transport.rest_client.RestClientTransport.getHighLevelResponse(RestClientTransport.java:337)
	at co.elastic.clients.transport.rest_client.RestClientTransport.performRequest(RestClientTransport.java:155)
	at co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient.query(ElasticsearchSqlClient.java:105)
	at co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient.query(ElasticsearchSqlClient.java:121)
	at com.vrv.im.service.impl.app.AppMessageService.main(AppMessageService.java:463)

The type of client params is {"key", value} , but the server only recognizes [value1,value2]

This problem has been present since version 7.17.1

@swallez swallez added Area: Specification Related to the API spec used to generate client code >v7.17 labels Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Specification Related to the API spec used to generate client code >v7.17
Projects
None yet
Development

No branches or pull requests

2 participants