Skip to content

Commit 074a8eb

Browse files
committed
[API] Adds :drop_null_columns boolean parameter to esql APIs
1 parent 4f2f588 commit 074a8eb

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module Actions
3030
#
3131
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
3232
# @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the csv format.
33+
# @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.
3334
# @option arguments [Hash] :headers Custom HTTP headers
3435
# @option arguments [Hash] :body Use the `query` element to start a query. Use `columnar` to format the answer. (*Required*)
3536
#

elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Actions
2727
# @option arguments [String] :id The async query ID
2828
# @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response
2929
# @option arguments [Time] :keep_alive Specify the time interval in which the results (partial or final) for this search will be available
30+
# @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.
3031
# @option arguments [Hash] :headers Custom HTTP headers
3132
#
3233
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-get-api.html

elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module Actions
3030
#
3131
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
3232
# @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the csv format.
33+
# @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.
3334
# @option arguments [Hash] :headers Custom HTTP headers
3435
# @option arguments [Hash] :body Use the `query` element to start a query. Use `columnar` to format the answer. (*Required*)
3536
#

0 commit comments

Comments
 (0)