lib/elasticsearch/api/actions/esql/query.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/esql/query.rb in elasticsearch-api-8.13.0

- old
+ new

@@ -28,26 +28,27 @@ # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the csv format. + # @option arguments [Boolean] :drop_null_columns Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Use the `query` element to start a query. Use `time_zone` to specify an execution time zone and `columnar` to format the answer. (*Required*) + # @option arguments [Hash] :body Use the `query` element to start a query. Use `columnar` to format the answer. (*Required*) # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/esql-query-api.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/esql-query-api.html # def query(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || "esql.query" } + request_opts = { endpoint: arguments[:endpoint] || 'esql.query' } raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST - path = "_query" + path = '_query' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) )