elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

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

Open team-ide opened this issue 1 year ago • 0 comments

https://github.com/elastic/elasticsearch-java/blob/c45dc2cb79f69ef1a8d0142c38f922eb9a8d4629/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java#L255

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

team-ide avatar Dec 29 '23 02:12 team-ide