diff --git a/docs/reference/esql/functions/functionNamedParams/qstr.asciidoc b/docs/reference/esql/functions/functionNamedParams/qstr.asciidoc deleted file mode 100644 index e12257c0bc2a0..0000000000000 --- a/docs/reference/esql/functions/functionNamedParams/qstr.asciidoc +++ /dev/null @@ -1,29 +0,0 @@ -// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. - -*Supported function named parameters* - -[%header.monospaced.styled,format=dsv,separator=|] -|=== -name | types | description -max_determinized_states | [integer] | Maximum number of automaton states required for the query. Default is 10000. -fuzziness | [keyword] | Maximum edit distance allowed for matching. -auto_generate_synonyms_phrase_query | [boolean] | If true, match phrase queries are automatically created for multi-term synonyms. -phrase_slop | [integer] | Maximum number of positions allowed between matching tokens for phrases. -default_field | [keyword] | Default field to search if no field is provided in the query string. Supports wildcards (*). -allow_leading_wildcard | [boolean] | If true, the wildcard characters * and ? are allowed as the first character of the query string. -minimum_should_match | [string] | Minimum number of clauses that must match for a document to be returned. -fuzzy_transpositions | [boolean] | If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba). -fuzzy_prefix_length | [integer] | Number of beginning characters left unchanged for fuzzy matching. Defaults to 0. -time_zone | [keyword] | Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query string to UTC. -lenient | [boolean] | If false, format-based errors, such as providing a text query value for a numeric field, are returned. -rewrite | [keyword] | Method used to rewrite the query. -default_operator | [keyword] | Default boolean logic used to interpret text in the query string if no operators are specified. -analyzer | [keyword] | Analyzer used to convert the text in the query value into token. -fuzzy_max_expansions | [integer] | Maximum number of terms to which the query expands for fuzzy matching. Defaults to 50. -quote_analyzer | [keyword] | Analyzer used to convert quoted text in the query string into tokens. -allow_wildcard | [boolean] | If true, the query attempts to analyze wildcard terms in the query string. -boost | [float] | Floating point number used to decrease or increase the relevance scores of the query. -quote_field_suffix | [keyword] | Suffix appended to quoted text in the query string. -enable_position_increments | [boolean] | If true, enable position increments in queries constructed from a query_string search. Defaults to true. -fields | [keyword] | Array of fields to search. Supports wildcards (*). -|=== diff --git a/docs/reference/esql/functions/kibana/definition/abs.json b/docs/reference/esql/functions/kibana/definition/abs.json deleted file mode 100644 index 888ebf6386401..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/abs.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "abs", - "description" : "Returns the absolute value.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "examples" : [ - "ROW number = -1.0 \n| EVAL abs_number = ABS(number)", - "FROM employees\n| KEEP first_name, last_name, height\n| EVAL abs_height = ABS(0.0 - height)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/acos.json b/docs/reference/esql/functions/kibana/definition/acos.json deleted file mode 100644 index 5b6a5b023f48d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/acos.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "acos", - "description" : "Returns the arccosine of `n` as an angle, expressed in radians.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Number between -1 and 1. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Number between -1 and 1. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Number between -1 and 1. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Number between -1 and 1. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=.9\n| EVAL acos=ACOS(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/add.json b/docs/reference/esql/functions/kibana/definition/add.json deleted file mode 100644 index e362f76d3d66c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/add.json +++ /dev/null @@ -1,371 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "+", - "name" : "add", - "description" : "Add two numbers together. If either field is <> then the result is `null`.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_period" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "time_duration" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/asin.json b/docs/reference/esql/functions/kibana/definition/asin.json deleted file mode 100644 index 293a66a21ab28..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/asin.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "asin", - "description" : "Returns the arcsine of the input\nnumeric expression as an angle, expressed in radians.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Number between -1 and 1. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Number between -1 and 1. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Number between -1 and 1. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Number between -1 and 1. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=.9\n| EVAL asin=ASIN(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/atan.json b/docs/reference/esql/functions/kibana/definition/atan.json deleted file mode 100644 index afa380ca1d7fa..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/atan.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "atan", - "description" : "Returns the arctangent of the input\nnumeric expression as an angle, expressed in radians.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=12.9\n| EVAL atan=ATAN(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/atan2.json b/docs/reference/esql/functions/kibana/definition/atan2.json deleted file mode 100644 index 8e12198cb60ee..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/atan2.json +++ /dev/null @@ -1,301 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "atan2", - "description" : "The angle between the positive x-axis and the ray from the\norigin to the point (x , y) in the Cartesian plane, expressed in radians.", - "signatures" : [ - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "double", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "double", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "double", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "integer", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "double", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "long", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "double", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "unsigned_long", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "integer", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "double", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "integer", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "integer", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "integer", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "long", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "integer", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "unsigned_long", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "long", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "double", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "long", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "integer", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "long", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "long", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "long", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "unsigned_long", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "unsigned_long", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "double", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "unsigned_long", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "integer", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "unsigned_long", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "long", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "y_coordinate", - "type" : "unsigned_long", - "optional" : false, - "description" : "y coordinate. If `null`, the function returns `null`." - }, - { - "name" : "x_coordinate", - "type" : "unsigned_long", - "optional" : false, - "description" : "x coordinate. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW y=12.9, x=.6\n| EVAL atan2=ATAN2(y, x)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/avg.json b/docs/reference/esql/functions/kibana/definition/avg.json deleted file mode 100644 index 41dad3eb31613..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/avg.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "avg", - "description" : "The average of a numeric field.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM employees\n| STATS AVG(height)", - "FROM employees\n| STATS avg_salary_change = ROUND(AVG(MV_AVG(salary_change)), 10)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/bit_length.json b/docs/reference/esql/functions/kibana/definition/bit_length.json deleted file mode 100644 index 25a032044ec9c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/bit_length.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "bit_length", - "description" : "Returns the bit length of a string.", - "note" : "All strings are in UTF-8, so a single character can use multiple bytes.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - } - ], - "examples" : [ - "FROM airports\n| WHERE country == \"India\"\n| KEEP city\n| EVAL fn_length = LENGTH(city), fn_bit_length = BIT_LENGTH(city)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/bucket.json b/docs/reference/esql/functions/kibana/definition/bucket.json deleted file mode 100644 index 990f102bac16f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/bucket.json +++ /dev/null @@ -1,1606 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "grouping", - "name" : "bucket", - "description" : "Creates groups of values - buckets - out of a datetime or numeric input.\nThe size of the buckets can either be provided directly, or chosen based on a recommended count and values range.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "date_period", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "date", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "date", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "date", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "keyword", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "date", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "text", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "keyword", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "date", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "keyword", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "keyword", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "keyword", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "text", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "text", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "date", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "text", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "keyword", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "text", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "text", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "time_duration", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "date_period", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "date", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "date", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "date", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "keyword", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "date", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "text", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "keyword", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "date", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "keyword", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "keyword", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "keyword", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "text", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "text", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "date", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "text", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "keyword", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "text", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "text", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "time_duration", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "double", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "long", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "double", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "long", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "double", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "double", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "integer", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "double", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "integer", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "integer", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - }, - { - "name" : "from", - "type" : "long", - "optional" : true, - "description" : "Start of the range. Can be a number, a date or a date expressed as a string." - }, - { - "name" : "to", - "type" : "long", - "optional" : true, - "description" : "End of the range. Can be a number, a date or a date expressed as a string." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Numeric or date expression from which to derive buckets." - }, - { - "name" : "buckets", - "type" : "long", - "optional" : false, - "description" : "Target number of buckets, or desired bucket size if `from` and `to` parameters are omitted." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS hire_date = MV_SORT(VALUES(hire_date)) BY month = BUCKET(hire_date, 20, \"1985-01-01T00:00:00Z\", \"1986-01-01T00:00:00Z\")\n| SORT hire_date", - "FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS hires_per_month = COUNT(*) BY month = BUCKET(hire_date, 20, \"1985-01-01T00:00:00Z\", \"1986-01-01T00:00:00Z\")\n| SORT month", - "FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS hires_per_week = COUNT(*) BY week = BUCKET(hire_date, 100, \"1985-01-01T00:00:00Z\", \"1986-01-01T00:00:00Z\")\n| SORT week", - "FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS hires_per_week = COUNT(*) BY week = BUCKET(hire_date, 1 week)\n| SORT week", - "FROM employees\n| STATS COUNT(*) by bs = BUCKET(salary, 20, 25324, 74999)\n| SORT bs", - "FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS c = COUNT(1) BY b = BUCKET(salary, 5000.)\n| SORT b", - "FROM sample_data \n| WHERE @timestamp >= NOW() - 1 day and @timestamp < NOW()\n| STATS COUNT(*) BY bucket = BUCKET(@timestamp, 25, NOW() - 1 day, NOW())", - "FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS AVG(salary) BY bucket = BUCKET(hire_date, 20, \"1985-01-01T00:00:00Z\", \"1986-01-01T00:00:00Z\")\n| SORT bucket", - "FROM employees\n| STATS s1 = b1 + 1, s2 = BUCKET(salary / 1000 + 999, 50.) + 2 BY b1 = BUCKET(salary / 100 + 99, 50.), b2 = BUCKET(salary / 1000 + 999, 50.)\n| SORT b1, b2\n| KEEP s1, b1, s2, b2", - "FROM employees\n| STATS dates = MV_SORT(VALUES(birth_date)) BY b = BUCKET(birth_date + 1 HOUR, 1 YEAR) - 1 HOUR\n| EVAL d_count = MV_COUNT(dates)\n| SORT d_count, b\n| LIMIT 3" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/byte_length.json b/docs/reference/esql/functions/kibana/definition/byte_length.json deleted file mode 100644 index 6d1a91813221b..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/byte_length.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "byte_length", - "description" : "Returns the byte length of a string.", - "note" : "All strings are in UTF-8, so a single character can use multiple bytes.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - } - ], - "examples" : [ - "FROM airports\n| WHERE country == \"India\"\n| KEEP city\n| EVAL fn_length = LENGTH(city), fn_byte_length = BYTE_LENGTH(city)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/case.json b/docs/reference/esql/functions/kibana/definition/case.json deleted file mode 100644 index 4e2d4187712e3..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/case.json +++ /dev/null @@ -1,693 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "case", - "description" : "Accepts pairs of conditions and values. The function returns the value that\nbelongs to the first condition that evaluates to `true`.\n\nIf the number of arguments is odd, the last argument is the default value which\nis returned when no condition matches. If the number of arguments is even, and\nno condition matches, the function returns `null`.", - "signatures" : [ - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "boolean", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "boolean", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "boolean", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "cartesian_point", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "cartesian_point", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "cartesian_point", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "cartesian_shape", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "cartesian_shape", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "cartesian_shape", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "date", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "date", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "date", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "date_nanos", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "date_nanos", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "date_nanos", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "double", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "double", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "double", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "geo_point", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "geo_point", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "geo_point", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "geo_shape", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "geo_shape", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "geo_shape", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "integer", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "integer", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "integer", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "ip", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "ip", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "ip", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "keyword", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "keyword", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "keyword", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "keyword", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "text", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "long", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "long", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "long", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "text", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "text", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "keyword", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "text", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "text", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "unsigned_long", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "unsigned_long", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "unsigned_long", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "version", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - } - ], - "variadic" : true, - "returnType" : "version" - }, - { - "params" : [ - { - "name" : "condition", - "type" : "boolean", - "optional" : false, - "description" : "A condition." - }, - { - "name" : "trueValue", - "type" : "version", - "optional" : false, - "description" : "The value that's returned when the corresponding condition is the first to evaluate to `true`. The default value is returned when no condition matches." - }, - { - "name" : "elseValue", - "type" : "version", - "optional" : true, - "description" : "The value that's returned when no condition evaluates to `true`." - } - ], - "variadic" : true, - "returnType" : "version" - } - ], - "examples" : [ - "FROM employees\n| EVAL type = CASE(\n languages <= 1, \"monolingual\",\n languages <= 2, \"bilingual\",\n \"polyglot\")\n| KEEP emp_no, languages, type", - "FROM sample_data\n| EVAL successful = CASE(\n STARTS_WITH(message, \"Connected to\"), 1,\n message == \"Connection error\", 0\n )\n| STATS success_rate = AVG(successful)", - "FROM sample_data\n| EVAL error = CASE(message LIKE \"*error*\", 1, 0)\n| EVAL hour = DATE_TRUNC(1 hour, @timestamp)\n| STATS error_rate = AVG(error) by hour\n| SORT hour" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/categorize.json b/docs/reference/esql/functions/kibana/definition/categorize.json deleted file mode 100644 index 1b7f20405756b..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/categorize.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "grouping", - "name" : "categorize", - "description" : "Groups text messages into categories of similarly formatted text values.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Expression to categorize" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Expression to categorize" - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM sample_data\n| STATS count=COUNT() BY category=CATEGORIZE(message)" - ], - "preview" : true, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/cbrt.json b/docs/reference/esql/functions/kibana/definition/cbrt.json deleted file mode 100644 index f146a864929a8..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/cbrt.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "cbrt", - "description" : "Returns the cube root of a number. The input can be any numeric value, the return value is always a double.\nCube roots of infinities are null.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW d = 1000.0\n| EVAL c = cbrt(d)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/ceil.json b/docs/reference/esql/functions/kibana/definition/ceil.json deleted file mode 100644 index 4a9e24e9094e8..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/ceil.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "ceil", - "description" : "Round a number up to the nearest integer.", - "note" : "This is a noop for `long` (including unsigned) and `integer`. For `double` this picks the closest `double` value to the integer similar to Math.ceil.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "examples" : [ - "ROW a=1.8\n| EVAL a=CEIL(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/cidr_match.json b/docs/reference/esql/functions/kibana/definition/cidr_match.json deleted file mode 100644 index 9e988623c0fd6..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/cidr_match.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "cidr_match", - "description" : "Returns true if the provided IP is contained in one of the provided CIDR blocks.", - "signatures" : [ - { - "params" : [ - { - "name" : "ip", - "type" : "ip", - "optional" : false, - "description" : "IP address of type `ip` (both IPv4 and IPv6 are supported)." - }, - { - "name" : "blockX", - "type" : "keyword", - "optional" : false, - "description" : "CIDR block to test the IP against." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "ip", - "type" : "ip", - "optional" : false, - "description" : "IP address of type `ip` (both IPv4 and IPv6 are supported)." - }, - { - "name" : "blockX", - "type" : "text", - "optional" : false, - "description" : "CIDR block to test the IP against." - } - ], - "variadic" : true, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM hosts \n| WHERE CIDR_MATCH(ip1, \"127.0.0.2/32\", \"127.0.0.3/32\") \n| KEEP card, host, ip0, ip1" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/coalesce.json b/docs/reference/esql/functions/kibana/definition/coalesce.json deleted file mode 100644 index a507aea3fd0d9..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/coalesce.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "coalesce", - "description" : "Returns the first of its arguments that is not null. If all arguments are null, it returns `null`.", - "signatures" : [ - { - "params" : [ - { - "name" : "first", - "type" : "boolean", - "optional" : false, - "description" : "Expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "first", - "type" : "boolean", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "boolean", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "first", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "cartesian_point", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "first", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "cartesian_shape", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "first", - "type" : "date", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "date", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "first", - "type" : "date_nanos", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "date_nanos", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "first", - "type" : "geo_point", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "geo_point", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "first", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "geo_shape", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "first", - "type" : "integer", - "optional" : false, - "description" : "Expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "first", - "type" : "integer", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "integer", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "first", - "type" : "ip", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "ip", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "first", - "type" : "keyword", - "optional" : false, - "description" : "Expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "keyword", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "keyword", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "long", - "optional" : false, - "description" : "Expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "first", - "type" : "long", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "long", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "first", - "type" : "text", - "optional" : false, - "description" : "Expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "text", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "text", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "version", - "optional" : false, - "description" : "Expression to evaluate." - }, - { - "name" : "rest", - "type" : "version", - "optional" : true, - "description" : "Other expression to evaluate." - } - ], - "variadic" : true, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a=null, b=\"b\"\n| EVAL COALESCE(a, b)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/concat.json b/docs/reference/esql/functions/kibana/definition/concat.json deleted file mode 100644 index b41ebba40b58e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/concat.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "concat", - "description" : "Concatenates two or more strings.", - "signatures" : [ - { - "params" : [ - { - "name" : "string1", - "type" : "keyword", - "optional" : false, - "description" : "Strings to concatenate." - }, - { - "name" : "string2", - "type" : "keyword", - "optional" : false, - "description" : "Strings to concatenate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "keyword", - "optional" : false, - "description" : "Strings to concatenate." - }, - { - "name" : "string2", - "type" : "text", - "optional" : false, - "description" : "Strings to concatenate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "text", - "optional" : false, - "description" : "Strings to concatenate." - }, - { - "name" : "string2", - "type" : "keyword", - "optional" : false, - "description" : "Strings to concatenate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "text", - "optional" : false, - "description" : "Strings to concatenate." - }, - { - "name" : "string2", - "type" : "text", - "optional" : false, - "description" : "Strings to concatenate." - } - ], - "variadic" : true, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM employees\n| KEEP first_name, last_name\n| EVAL fullname = CONCAT(first_name, \" \", last_name)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/cos.json b/docs/reference/esql/functions/kibana/definition/cos.json deleted file mode 100644 index 8922dd6db555c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/cos.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "cos", - "description" : "Returns the cosine of an angle.", - "signatures" : [ - { - "params" : [ - { - "name" : "angle", - "type" : "double", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "integer", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "long", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "unsigned_long", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=1.8 \n| EVAL cos=COS(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/cosh.json b/docs/reference/esql/functions/kibana/definition/cosh.json deleted file mode 100644 index 458f4ecf04554..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/cosh.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "cosh", - "description" : "Returns the hyperbolic cosine of a number.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=1.8 \n| EVAL cosh=COSH(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/count.json b/docs/reference/esql/functions/kibana/definition/count.json deleted file mode 100644 index 329a18c4d9d01..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/count.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "count", - "description" : "Returns the total number (count) of input values.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : true, - "description" : "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)." - } - ], - "variadic" : false, - "returnType" : "long" - } - ], - "examples" : [ - "FROM employees\n| STATS COUNT(height)", - "FROM employees\n| STATS count = COUNT(*) BY languages\n| SORT languages DESC", - "ROW words=\"foo;bar;baz;qux;quux;foo\"\n| STATS word_count = COUNT(SPLIT(words, \";\"))", - "ROW n=1\n| WHERE n < 0\n| STATS COUNT(n)", - "ROW n=1\n| STATS COUNT(n > 0 OR NULL), COUNT(n < 0 OR NULL)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/count_distinct.json b/docs/reference/esql/functions/kibana/definition/count_distinct.json deleted file mode 100644 index 54b99ee84ce2d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/count_distinct.json +++ /dev/null @@ -1,675 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "count_distinct", - "description" : "Returns the approximate number of distinct values.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "integer", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Column or literal for which to count the number of distinct values." - }, - { - "name" : "precision", - "type" : "unsigned_long", - "optional" : true, - "description" : "Precision threshold. Refer to <>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000." - } - ], - "variadic" : false, - "returnType" : "long" - } - ], - "examples" : [ - "FROM hosts\n| STATS COUNT_DISTINCT(ip0), COUNT_DISTINCT(ip1)", - "FROM hosts\n| STATS COUNT_DISTINCT(ip0, 80000), COUNT_DISTINCT(ip1, 5)", - "ROW words=\"foo;bar;baz;qux;quux;foo\"\n| STATS distinct_word_count = COUNT_DISTINCT(SPLIT(words, \";\"))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/date_diff.json b/docs/reference/esql/functions/kibana/definition/date_diff.json deleted file mode 100644 index dab7f7e0ef2e3..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/date_diff.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "date_diff", - "description" : "Subtracts the `startTimestamp` from the `endTimestamp` and returns the difference in multiples of `unit`.\nIf `startTimestamp` is later than the `endTimestamp`, negative values are returned.", - "signatures" : [ - { - "params" : [ - { - "name" : "unit", - "type" : "keyword", - "optional" : false, - "description" : "Time difference unit" - }, - { - "name" : "startTimestamp", - "type" : "date", - "optional" : false, - "description" : "A string representing a start timestamp" - }, - { - "name" : "endTimestamp", - "type" : "date", - "optional" : false, - "description" : "A string representing an end timestamp" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "unit", - "type" : "keyword", - "optional" : false, - "description" : "Time difference unit" - }, - { - "name" : "startTimestamp", - "type" : "date", - "optional" : false, - "description" : "A string representing a start timestamp" - }, - { - "name" : "endTimestamp", - "type" : "date_nanos", - "optional" : false, - "description" : "A string representing an end timestamp" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "unit", - "type" : "keyword", - "optional" : false, - "description" : "Time difference unit" - }, - { - "name" : "startTimestamp", - "type" : "date_nanos", - "optional" : false, - "description" : "A string representing a start timestamp" - }, - { - "name" : "endTimestamp", - "type" : "date", - "optional" : false, - "description" : "A string representing an end timestamp" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "unit", - "type" : "keyword", - "optional" : false, - "description" : "Time difference unit" - }, - { - "name" : "startTimestamp", - "type" : "date_nanos", - "optional" : false, - "description" : "A string representing a start timestamp" - }, - { - "name" : "endTimestamp", - "type" : "date_nanos", - "optional" : false, - "description" : "A string representing an end timestamp" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "unit", - "type" : "text", - "optional" : false, - "description" : "Time difference unit" - }, - { - "name" : "startTimestamp", - "type" : "date", - "optional" : false, - "description" : "A string representing a start timestamp" - }, - { - "name" : "endTimestamp", - "type" : "date", - "optional" : false, - "description" : "A string representing an end timestamp" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "unit", - "type" : "text", - "optional" : false, - "description" : "Time difference unit" - }, - { - "name" : "startTimestamp", - "type" : "date", - "optional" : false, - "description" : "A string representing a start timestamp" - }, - { - "name" : "endTimestamp", - "type" : "date_nanos", - "optional" : false, - "description" : "A string representing an end timestamp" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "unit", - "type" : "text", - "optional" : false, - "description" : "Time difference unit" - }, - { - "name" : "startTimestamp", - "type" : "date_nanos", - "optional" : false, - "description" : "A string representing a start timestamp" - }, - { - "name" : "endTimestamp", - "type" : "date", - "optional" : false, - "description" : "A string representing an end timestamp" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "unit", - "type" : "text", - "optional" : false, - "description" : "Time difference unit" - }, - { - "name" : "startTimestamp", - "type" : "date_nanos", - "optional" : false, - "description" : "A string representing a start timestamp" - }, - { - "name" : "endTimestamp", - "type" : "date_nanos", - "optional" : false, - "description" : "A string representing an end timestamp" - } - ], - "variadic" : false, - "returnType" : "integer" - } - ], - "examples" : [ - "ROW date1 = TO_DATETIME(\"2023-12-02T11:00:00.000Z\"), date2 = TO_DATETIME(\"2023-12-02T11:00:00.001Z\")\n| EVAL dd_ms = DATE_DIFF(\"microseconds\", date1, date2)", - "ROW end_23=TO_DATETIME(\"2023-12-31T23:59:59.999Z\"),\n start_24=TO_DATETIME(\"2024-01-01T00:00:00.000Z\"),\n end_24=TO_DATETIME(\"2024-12-31T23:59:59.999\")\n| EVAL end23_to_start24=DATE_DIFF(\"year\", end_23, start_24)\n| EVAL end23_to_end24=DATE_DIFF(\"year\", end_23, end_24)\n| EVAL start_to_end_24=DATE_DIFF(\"year\", start_24, end_24)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/date_extract.json b/docs/reference/esql/functions/kibana/definition/date_extract.json deleted file mode 100644 index 1778d99dcf342..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/date_extract.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "date_extract", - "description" : "Extracts parts of a date, like year, month, day, hour.", - "signatures" : [ - { - "params" : [ - { - "name" : "datePart", - "type" : "keyword", - "optional" : false, - "description" : "Part of the date to extract. Can be: `aligned_day_of_week_in_month`, `aligned_day_of_week_in_year`, `aligned_week_of_month`, `aligned_week_of_year`, `ampm_of_day`, `clock_hour_of_ampm`, `clock_hour_of_day`, `day_of_month`, `day_of_week`, `day_of_year`, `epoch_day`, `era`, `hour_of_ampm`, `hour_of_day`, `instant_seconds`, `micro_of_day`, `micro_of_second`, `milli_of_day`, `milli_of_second`, `minute_of_day`, `minute_of_hour`, `month_of_year`, `nano_of_day`, `nano_of_second`, `offset_seconds`, `proleptic_month`, `second_of_day`, `second_of_minute`, `year`, or `year_of_era`. Refer to https://docs.oracle.com/javase/8/docs/api/java/time/temporal/ChronoField.html[java.time.temporal.ChronoField] for a description of these values. If `null`, the function returns `null`." - }, - { - "name" : "date", - "type" : "date", - "optional" : false, - "description" : "Date expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "datePart", - "type" : "keyword", - "optional" : false, - "description" : "Part of the date to extract. Can be: `aligned_day_of_week_in_month`, `aligned_day_of_week_in_year`, `aligned_week_of_month`, `aligned_week_of_year`, `ampm_of_day`, `clock_hour_of_ampm`, `clock_hour_of_day`, `day_of_month`, `day_of_week`, `day_of_year`, `epoch_day`, `era`, `hour_of_ampm`, `hour_of_day`, `instant_seconds`, `micro_of_day`, `micro_of_second`, `milli_of_day`, `milli_of_second`, `minute_of_day`, `minute_of_hour`, `month_of_year`, `nano_of_day`, `nano_of_second`, `offset_seconds`, `proleptic_month`, `second_of_day`, `second_of_minute`, `year`, or `year_of_era`. Refer to https://docs.oracle.com/javase/8/docs/api/java/time/temporal/ChronoField.html[java.time.temporal.ChronoField] for a description of these values. If `null`, the function returns `null`." - }, - { - "name" : "date", - "type" : "date_nanos", - "optional" : false, - "description" : "Date expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "datePart", - "type" : "text", - "optional" : false, - "description" : "Part of the date to extract. Can be: `aligned_day_of_week_in_month`, `aligned_day_of_week_in_year`, `aligned_week_of_month`, `aligned_week_of_year`, `ampm_of_day`, `clock_hour_of_ampm`, `clock_hour_of_day`, `day_of_month`, `day_of_week`, `day_of_year`, `epoch_day`, `era`, `hour_of_ampm`, `hour_of_day`, `instant_seconds`, `micro_of_day`, `micro_of_second`, `milli_of_day`, `milli_of_second`, `minute_of_day`, `minute_of_hour`, `month_of_year`, `nano_of_day`, `nano_of_second`, `offset_seconds`, `proleptic_month`, `second_of_day`, `second_of_minute`, `year`, or `year_of_era`. Refer to https://docs.oracle.com/javase/8/docs/api/java/time/temporal/ChronoField.html[java.time.temporal.ChronoField] for a description of these values. If `null`, the function returns `null`." - }, - { - "name" : "date", - "type" : "date", - "optional" : false, - "description" : "Date expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "datePart", - "type" : "text", - "optional" : false, - "description" : "Part of the date to extract. Can be: `aligned_day_of_week_in_month`, `aligned_day_of_week_in_year`, `aligned_week_of_month`, `aligned_week_of_year`, `ampm_of_day`, `clock_hour_of_ampm`, `clock_hour_of_day`, `day_of_month`, `day_of_week`, `day_of_year`, `epoch_day`, `era`, `hour_of_ampm`, `hour_of_day`, `instant_seconds`, `micro_of_day`, `micro_of_second`, `milli_of_day`, `milli_of_second`, `minute_of_day`, `minute_of_hour`, `month_of_year`, `nano_of_day`, `nano_of_second`, `offset_seconds`, `proleptic_month`, `second_of_day`, `second_of_minute`, `year`, or `year_of_era`. Refer to https://docs.oracle.com/javase/8/docs/api/java/time/temporal/ChronoField.html[java.time.temporal.ChronoField] for a description of these values. If `null`, the function returns `null`." - }, - { - "name" : "date", - "type" : "date_nanos", - "optional" : false, - "description" : "Date expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - } - ], - "examples" : [ - "ROW date = DATE_PARSE(\"yyyy-MM-dd\", \"2022-05-06\")\n| EVAL year = DATE_EXTRACT(\"year\", date)", - "FROM sample_data\n| WHERE DATE_EXTRACT(\"hour_of_day\", @timestamp) < 9 AND DATE_EXTRACT(\"hour_of_day\", @timestamp) >= 17" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/date_format.json b/docs/reference/esql/functions/kibana/definition/date_format.json deleted file mode 100644 index 633e20444d771..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/date_format.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "date_format", - "description" : "Returns a string representation of a date, in the provided format.", - "signatures" : [ - { - "params" : [ - { - "name" : "dateFormat", - "type" : "date", - "optional" : true, - "description" : "Date format (optional). If no format is specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "dateFormat", - "type" : "date_nanos", - "optional" : true, - "description" : "Date format (optional). If no format is specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "dateFormat", - "type" : "keyword", - "optional" : true, - "description" : "Date format (optional). If no format is specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used. If `null`, the function returns `null`." - }, - { - "name" : "date", - "type" : "date", - "optional" : false, - "description" : "Date expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "dateFormat", - "type" : "keyword", - "optional" : true, - "description" : "Date format (optional). If no format is specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used. If `null`, the function returns `null`." - }, - { - "name" : "date", - "type" : "date_nanos", - "optional" : false, - "description" : "Date expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "dateFormat", - "type" : "text", - "optional" : true, - "description" : "Date format (optional). If no format is specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used. If `null`, the function returns `null`." - }, - { - "name" : "date", - "type" : "date", - "optional" : false, - "description" : "Date expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "dateFormat", - "type" : "text", - "optional" : true, - "description" : "Date format (optional). If no format is specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used. If `null`, the function returns `null`." - }, - { - "name" : "date", - "type" : "date_nanos", - "optional" : false, - "description" : "Date expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM employees\n| KEEP first_name, last_name, hire_date\n| EVAL hired = DATE_FORMAT(\"yyyy-MM-dd\", hire_date)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/date_parse.json b/docs/reference/esql/functions/kibana/definition/date_parse.json deleted file mode 100644 index 8e2f15efce829..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/date_parse.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "date_parse", - "description" : "Returns a date by parsing the second argument using the format specified in the first argument.", - "signatures" : [ - { - "params" : [ - { - "name" : "datePattern", - "type" : "keyword", - "optional" : true, - "description" : "The date format. Refer to the https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/time/format/DateTimeFormatter.html[`DateTimeFormatter` documentation] for the syntax. If `null`, the function returns `null`." - }, - { - "name" : "dateString", - "type" : "keyword", - "optional" : false, - "description" : "Date expression as a string. If `null` or an empty string, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "datePattern", - "type" : "keyword", - "optional" : true, - "description" : "The date format. Refer to the https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/time/format/DateTimeFormatter.html[`DateTimeFormatter` documentation] for the syntax. If `null`, the function returns `null`." - }, - { - "name" : "dateString", - "type" : "text", - "optional" : false, - "description" : "Date expression as a string. If `null` or an empty string, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "datePattern", - "type" : "text", - "optional" : true, - "description" : "The date format. Refer to the https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/time/format/DateTimeFormatter.html[`DateTimeFormatter` documentation] for the syntax. If `null`, the function returns `null`." - }, - { - "name" : "dateString", - "type" : "keyword", - "optional" : false, - "description" : "Date expression as a string. If `null` or an empty string, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "datePattern", - "type" : "text", - "optional" : true, - "description" : "The date format. Refer to the https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/time/format/DateTimeFormatter.html[`DateTimeFormatter` documentation] for the syntax. If `null`, the function returns `null`." - }, - { - "name" : "dateString", - "type" : "text", - "optional" : false, - "description" : "Date expression as a string. If `null` or an empty string, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "date" - } - ], - "examples" : [ - "ROW date_string = \"2022-05-06\"\n| EVAL date = DATE_PARSE(\"yyyy-MM-dd\", date_string)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/date_trunc.json b/docs/reference/esql/functions/kibana/definition/date_trunc.json deleted file mode 100644 index 023298d0f8b53..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/date_trunc.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "date_trunc", - "description" : "Rounds down a date to the closest interval.", - "signatures" : [ - { - "params" : [ - { - "name" : "interval", - "type" : "date_period", - "optional" : false, - "description" : "Interval; expressed using the timespan literal syntax." - }, - { - "name" : "date", - "type" : "date", - "optional" : false, - "description" : "Date expression" - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "interval", - "type" : "date_period", - "optional" : false, - "description" : "Interval; expressed using the timespan literal syntax." - }, - { - "name" : "date", - "type" : "date_nanos", - "optional" : false, - "description" : "Date expression" - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "interval", - "type" : "time_duration", - "optional" : false, - "description" : "Interval; expressed using the timespan literal syntax." - }, - { - "name" : "date", - "type" : "date", - "optional" : false, - "description" : "Date expression" - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "interval", - "type" : "time_duration", - "optional" : false, - "description" : "Interval; expressed using the timespan literal syntax." - }, - { - "name" : "date", - "type" : "date_nanos", - "optional" : false, - "description" : "Date expression" - } - ], - "variadic" : false, - "returnType" : "date_nanos" - } - ], - "examples" : [ - "FROM employees\n| KEEP first_name, last_name, hire_date\n| EVAL year_hired = DATE_TRUNC(1 year, hire_date)", - "FROM employees\n| EVAL year = DATE_TRUNC(1 year, hire_date)\n| STATS hires = COUNT(emp_no) BY year\n| SORT year", - "FROM sample_data\n| EVAL error = CASE(message LIKE \"*error*\", 1, 0)\n| EVAL hour = DATE_TRUNC(1 hour, @timestamp)\n| STATS error_rate = AVG(error) by hour\n| SORT hour" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/div.json b/docs/reference/esql/functions/kibana/definition/div.json deleted file mode 100644 index 0ff7d7f413f7e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/div.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "/", - "name" : "div", - "description" : "Divide one number by another. If either field is <> then the result is `null`.", - "note" : "Division of two integer types will yield an integer result, rounding towards 0. If you need floating point division, <> one of the arguments to a `DOUBLE`.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/e.json b/docs/reference/esql/functions/kibana/definition/e.json deleted file mode 100644 index 15bcb0572e2a8..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/e.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "e", - "description" : "Returns Euler's number.", - "signatures" : [ - { - "params" : [ ], - "returnType" : "double" - } - ], - "examples" : [ - "ROW E()" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/ends_with.json b/docs/reference/esql/functions/kibana/definition/ends_with.json deleted file mode 100644 index eb2e0268214ad..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/ends_with.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "ends_with", - "description" : "Returns a boolean that indicates whether a keyword string ends with another string.", - "signatures" : [ - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "suffix", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "suffix", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "suffix", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "suffix", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM employees\n| KEEP last_name\n| EVAL ln_E = ENDS_WITH(last_name, \"d\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/equals.json b/docs/reference/esql/functions/kibana/definition/equals.json deleted file mode 100644 index 035adb826107e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/equals.json +++ /dev/null @@ -1,462 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "==", - "name" : "equals", - "description" : "Check if two fields are equal. If either field is <> then the result is `null`.", - "note" : "This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "boolean", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "boolean", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "cartesian_point", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "cartesian_point", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "cartesian_shape", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "cartesian_shape", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "geo_point", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "geo_point", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "geo_shape", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "geo_shape", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/exp.json b/docs/reference/esql/functions/kibana/definition/exp.json deleted file mode 100644 index 186cde72c7999..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/exp.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "exp", - "description" : "Returns the value of e raised to the power of the given number.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW d = 5.0\n| EVAL s = EXP(d)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/floor.json b/docs/reference/esql/functions/kibana/definition/floor.json deleted file mode 100644 index 6e2deb3dce567..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/floor.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "floor", - "description" : "Round a number down to the nearest integer.", - "note" : "This is a noop for `long` (including unsigned) and `integer`.\nFor `double` this picks the closest `double` value to the integer\nsimilar to Math.floor.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "examples" : [ - "ROW a=1.8\n| EVAL a=FLOOR(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/from_base64.json b/docs/reference/esql/functions/kibana/definition/from_base64.json deleted file mode 100644 index a94f4a338cb08..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/from_base64.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "from_base64", - "description" : "Decode a base64 string.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "A base64 string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "A base64 string." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "row a = \"ZWxhc3RpYw==\" \n| eval d = from_base64(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/greater_than.json b/docs/reference/esql/functions/kibana/definition/greater_than.json deleted file mode 100644 index 3f8be68f76cae..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/greater_than.json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : ">", - "name" : "greater_than", - "description" : "Check if one field is greater than another. If either field is <> then the result is `null`.", - "note" : "This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/greater_than_or_equal.json b/docs/reference/esql/functions/kibana/definition/greater_than_or_equal.json deleted file mode 100644 index 8f68e2af02073..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/greater_than_or_equal.json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : ">=", - "name" : "greater_than_or_equal", - "description" : "Check if one field is greater than or equal to another. If either field is <> then the result is `null`.", - "note" : "This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/greatest.json b/docs/reference/esql/functions/kibana/definition/greatest.json deleted file mode 100644 index af78ca3d02b5d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/greatest.json +++ /dev/null @@ -1,254 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "greatest", - "description" : "Returns the maximum value from multiple columns. This is similar to <>\nexcept it is intended to run on multiple columns at once.", - "note" : "When run on `keyword` or `text` fields, this returns the last string in alphabetical order. When run on `boolean` columns this will return `true` if any values are `true`.", - "signatures" : [ - { - "params" : [ - { - "name" : "first", - "type" : "boolean", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "first", - "type" : "boolean", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "boolean", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "first", - "type" : "date", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "date", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "first", - "type" : "date_nanos", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "date_nanos", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "first", - "type" : "double", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "double", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "first", - "type" : "integer", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "first", - "type" : "integer", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "integer", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "first", - "type" : "ip", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "ip", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "first", - "type" : "keyword", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "keyword", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "keyword", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "long", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "first", - "type" : "long", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "long", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "first", - "type" : "text", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "text", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "text", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "version", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "version", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a = 10, b = 20\n| EVAL g = GREATEST(a, b)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/hash.json b/docs/reference/esql/functions/kibana/definition/hash.json deleted file mode 100644 index 93ee99bf3e9c9..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/hash.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "hash", - "description" : "Computes the hash of the input using various algorithms such as MD5, SHA, SHA-224, SHA-256, SHA-384, SHA-512.", - "signatures" : [ - { - "params" : [ - { - "name" : "algorithm", - "type" : "keyword", - "optional" : false, - "description" : "Hash algorithm to use." - }, - { - "name" : "input", - "type" : "keyword", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "algorithm", - "type" : "keyword", - "optional" : false, - "description" : "Hash algorithm to use." - }, - { - "name" : "input", - "type" : "text", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "algorithm", - "type" : "text", - "optional" : false, - "description" : "Hash algorithm to use." - }, - { - "name" : "input", - "type" : "keyword", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "algorithm", - "type" : "text", - "optional" : false, - "description" : "Hash algorithm to use." - }, - { - "name" : "input", - "type" : "text", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM sample_data \n| WHERE message != \"Connection error\"\n| EVAL md5 = hash(\"md5\", message), sha256 = hash(\"sha256\", message) \n| KEEP message, md5, sha256;" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/hypot.json b/docs/reference/esql/functions/kibana/definition/hypot.json deleted file mode 100644 index a71f318a286b1..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/hypot.json +++ /dev/null @@ -1,301 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "hypot", - "description" : "Returns the hypotenuse of two numbers. The input can be any numeric values, the return value is always a double.\nHypotenuses of infinities are null.", - "signatures" : [ - { - "params" : [ - { - "name" : "number1", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number1", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - }, - { - "name" : "number2", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a = 3.0, b = 4.0\n| EVAL c = HYPOT(a, b)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/in.json b/docs/reference/esql/functions/kibana/definition/in.json deleted file mode 100644 index fa041e79df451..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/in.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "IN", - "name" : "in", - "description" : "The `IN` operator allows testing whether a field or expression equals an element in a list of literals, fields or expressions.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "boolean", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "cartesian_point", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "cartesian_shape", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "double", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "geo_point", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "geo_shape", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "integer", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "ip", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "keyword", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "text", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "long", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "keyword", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "text", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "inlist", - "type" : "version", - "optional" : false, - "description" : "A list of items." - } - ], - "variadic" : true, - "returnType" : "boolean" - } - ], - "examples" : [ - "ROW a = 1, b = 4, c = 3\n| WHERE c-a IN (3, b / 2, a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/ip_prefix.json b/docs/reference/esql/functions/kibana/definition/ip_prefix.json deleted file mode 100644 index 0d039a784a7bb..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/ip_prefix.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "ip_prefix", - "description" : "Truncates an IP to a given prefix length.", - "signatures" : [ - { - "params" : [ - { - "name" : "ip", - "type" : "ip", - "optional" : false, - "description" : "IP address of type `ip` (both IPv4 and IPv6 are supported)." - }, - { - "name" : "prefixLengthV4", - "type" : "integer", - "optional" : false, - "description" : "Prefix length for IPv4 addresses." - }, - { - "name" : "prefixLengthV6", - "type" : "integer", - "optional" : false, - "description" : "Prefix length for IPv6 addresses." - } - ], - "variadic" : false, - "returnType" : "ip" - } - ], - "examples" : [ - "row ip4 = to_ip(\"1.2.3.4\"), ip6 = to_ip(\"fe80::cae2:65ff:fece:feb9\")\n| eval ip4_prefix = ip_prefix(ip4, 24, 0), ip6_prefix = ip_prefix(ip6, 0, 112);" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/kql.json b/docs/reference/esql/functions/kibana/definition/kql.json deleted file mode 100644 index ff0f854f20fa5..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/kql.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "kql", - "description" : "Performs a KQL query. Returns true if the provided KQL query string matches the row.", - "signatures" : [ - { - "params" : [ - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Query string in KQL query string format." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "query", - "type" : "text", - "optional" : false, - "description" : "Query string in KQL query string format." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM books \n| WHERE KQL(\"author: Faulkner\")\n| KEEP book_no, author \n| SORT book_no \n| LIMIT 5" - ], - "preview" : true, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/least.json b/docs/reference/esql/functions/kibana/definition/least.json deleted file mode 100644 index 30f27b9be0b07..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/least.json +++ /dev/null @@ -1,253 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "least", - "description" : "Returns the minimum value from multiple columns. This is similar to <> except it is intended to run on multiple columns at once.", - "signatures" : [ - { - "params" : [ - { - "name" : "first", - "type" : "boolean", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "first", - "type" : "boolean", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "boolean", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "first", - "type" : "date", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "date", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "first", - "type" : "date_nanos", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "date_nanos", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "first", - "type" : "double", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "double", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "first", - "type" : "integer", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "first", - "type" : "integer", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "integer", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "first", - "type" : "ip", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "ip", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "first", - "type" : "keyword", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "keyword", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "keyword", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "long", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "first", - "type" : "long", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "long", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "first", - "type" : "text", - "optional" : false, - "description" : "First of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "text", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "text", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "first", - "type" : "version", - "optional" : false, - "description" : "First of the columns to evaluate." - }, - { - "name" : "rest", - "type" : "version", - "optional" : true, - "description" : "The rest of the columns to evaluate." - } - ], - "variadic" : true, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a = 10, b = 20\n| EVAL l = LEAST(a, b)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/left.json b/docs/reference/esql/functions/kibana/definition/left.json deleted file mode 100644 index b367dc9655ec5..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/left.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "left", - "description" : "Returns the substring that extracts 'length' chars from 'string' starting from the left.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "The string from which to return a substring." - }, - { - "name" : "length", - "type" : "integer", - "optional" : false, - "description" : "The number of characters to return." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "The string from which to return a substring." - }, - { - "name" : "length", - "type" : "integer", - "optional" : false, - "description" : "The number of characters to return." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM employees\n| KEEP last_name\n| EVAL left = LEFT(last_name, 3)\n| SORT last_name ASC\n| LIMIT 5" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/length.json b/docs/reference/esql/functions/kibana/definition/length.json deleted file mode 100644 index c2eca63e4e1dd..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/length.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "length", - "description" : "Returns the character length of a string.", - "note" : "All strings are in UTF-8, so a single character can use multiple bytes.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - } - ], - "examples" : [ - "FROM airports\n| WHERE country == \"India\"\n| KEEP city\n| EVAL fn_length = LENGTH(city)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/less_than.json b/docs/reference/esql/functions/kibana/definition/less_than.json deleted file mode 100644 index 1572b34534ac2..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/less_than.json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "<", - "name" : "less_than", - "description" : "Check if one field is less than another. If either field is <> then the result is `null`.", - "note" : "This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/less_than_or_equal.json b/docs/reference/esql/functions/kibana/definition/less_than_or_equal.json deleted file mode 100644 index 62fd3d69fe143..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/less_than_or_equal.json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "<=", - "name" : "less_than_or_equal", - "description" : "Check if one field is less than or equal to another. If either field is <> then the result is `null`.", - "note" : "This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/like.json b/docs/reference/esql/functions/kibana/definition/like.json deleted file mode 100644 index 4a26dca276696..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/like.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "LIKE", - "name" : "like", - "description" : "Use `LIKE` to filter data based on string patterns using wildcards. `LIKE`\nusually acts on a field placed on the left-hand side of the operator, but it can\nalso act on a constant (literal) expression. The right-hand side of the operator\nrepresents the pattern.\n\nThe following wildcard characters are supported:\n\n* `*` matches zero or more characters.\n* `?` matches one character.", - "signatures" : [ - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "A literal expression." - }, - { - "name" : "pattern", - "type" : "keyword", - "optional" : false, - "description" : "Pattern." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "A literal expression." - }, - { - "name" : "pattern", - "type" : "keyword", - "optional" : false, - "description" : "Pattern." - } - ], - "variadic" : true, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM employees\n| WHERE first_name LIKE \"\"\"?b*\"\"\"\n| KEEP first_name, last_name" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/locate.json b/docs/reference/esql/functions/kibana/definition/locate.json deleted file mode 100644 index 0322ec1945aa7..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/locate.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "locate", - "description" : "Returns an integer that indicates the position of a keyword substring within another string.\nReturns `0` if the substring cannot be found.\nNote that string positions start from `1`.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "An input string" - }, - { - "name" : "substring", - "type" : "keyword", - "optional" : false, - "description" : "A substring to locate in the input string" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "An input string" - }, - { - "name" : "substring", - "type" : "keyword", - "optional" : false, - "description" : "A substring to locate in the input string" - }, - { - "name" : "start", - "type" : "integer", - "optional" : true, - "description" : "The start index" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "An input string" - }, - { - "name" : "substring", - "type" : "text", - "optional" : false, - "description" : "A substring to locate in the input string" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "An input string" - }, - { - "name" : "substring", - "type" : "text", - "optional" : false, - "description" : "A substring to locate in the input string" - }, - { - "name" : "start", - "type" : "integer", - "optional" : true, - "description" : "The start index" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "An input string" - }, - { - "name" : "substring", - "type" : "keyword", - "optional" : false, - "description" : "A substring to locate in the input string" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "An input string" - }, - { - "name" : "substring", - "type" : "keyword", - "optional" : false, - "description" : "A substring to locate in the input string" - }, - { - "name" : "start", - "type" : "integer", - "optional" : true, - "description" : "The start index" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "An input string" - }, - { - "name" : "substring", - "type" : "text", - "optional" : false, - "description" : "A substring to locate in the input string" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "An input string" - }, - { - "name" : "substring", - "type" : "text", - "optional" : false, - "description" : "A substring to locate in the input string" - }, - { - "name" : "start", - "type" : "integer", - "optional" : true, - "description" : "The start index" - } - ], - "variadic" : false, - "returnType" : "integer" - } - ], - "examples" : [ - "row a = \"hello\"\n| eval a_ll = locate(a, \"ll\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/log.json b/docs/reference/esql/functions/kibana/definition/log.json deleted file mode 100644 index c75349a89630d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/log.json +++ /dev/null @@ -1,350 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "log", - "description" : "Returns the logarithm of a value to a base. The input can be any numeric value, the return value is always a double.\n\nLogs of zero, negative numbers, and base of one return `null` as well as a warning.", - "signatures" : [ - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : true, - "description" : "Base of logarithm. If `null`, the function returns `null`. If not provided, this function returns the natural logarithm (base e) of a value." - }, - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW base = 2.0, value = 8.0\n| EVAL s = LOG(base, value)", - "row value = 100\n| EVAL s = LOG(value);" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/log10.json b/docs/reference/esql/functions/kibana/definition/log10.json deleted file mode 100644 index 6cc089ae49c4f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/log10.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "log10", - "description" : "Returns the logarithm of a value to base 10. The input can be any numeric value, the return value is always a double.\n\nLogs of 0 and negative numbers return `null` as well as a warning.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW d = 1000.0 \n| EVAL s = LOG10(d)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/ltrim.json b/docs/reference/esql/functions/kibana/definition/ltrim.json deleted file mode 100644 index f0a58dd4f9aea..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/ltrim.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "ltrim", - "description" : "Removes leading whitespaces from a string.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW message = \" some text \", color = \" red \"\n| EVAL message = LTRIM(message)\n| EVAL color = LTRIM(color)\n| EVAL message = CONCAT(\"'\", message, \"'\")\n| EVAL color = CONCAT(\"'\", color, \"'\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/match.json b/docs/reference/esql/functions/kibana/definition/match.json deleted file mode 100644 index 4844382fe04cf..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/match.json +++ /dev/null @@ -1,739 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "match", - "description" : "Use `MATCH` to perform a <> on the specified field.\nUsing `MATCH` is equivalent to using the `match` query in the Elasticsearch Query DSL.\n\nMatch can be used on fields from the text family like <> and <>,\nas well as other field types like keyword, boolean, dates, and numeric types.\n\nMatch can use <> to specify additional options for the match query.\nAll <> are supported.\n\nFor a simplified syntax, you can use the <> `:` operator instead of `MATCH`.\n\n`MATCH` returns true if the provided query matches the row.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "boolean", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "date", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "date_nanos", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "double", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "integer", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "long", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "double", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "integer", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "long", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "ip", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "double", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "integer", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "long", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "double", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "integer", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "long", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "unsigned_long", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "version", - "optional" : false, - "description" : "Value to find in the provided field." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='minimum_should_match', values=[2], description='Minimum number of clauses that must match for a document to be returned.'}, {name='zero_terms_query', values=[none, all], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_rewrite', values=[constant_score_blended, constant_score, constant_score_boolean, top_terms_blended_freqs_N, top_terms_boost_N, top_terms_N], description='Method used to rewrite the query. See the rewrite parameter for valid values and more information.'}, {name='prefix_length', values=[1], description='Number of beginning characters left unchanged for fuzzy matching.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='operator', values=[AND, OR], description='Boolean logic used to interpret text in the query value.'}, {name='max_expansions', values=[50], description='Maximum number of terms to which the query will expand.'}", - "optional" : true, - "description" : "(Optional) Match additional options as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM books \n| WHERE MATCH(author, \"Faulkner\")\n| KEEP book_no, author \n| SORT book_no \n| LIMIT 5", - "FROM books \n| WHERE MATCH(title, \"Hobbit Back Again\", {\"operator\": \"AND\"})\n| KEEP title;" - ], - "preview" : true, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/match_operator.json b/docs/reference/esql/functions/kibana/definition/match_operator.json deleted file mode 100644 index 98f1a8d73d35e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/match_operator.json +++ /dev/null @@ -1,536 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : ":", - "name" : "match_operator", - "description" : "Use the match operator (`:`) to perform a <> on the specified field.\nUsing `:` is equivalent to using the `match` query in the Elasticsearch Query DSL.\n\nThe match operator is equivalent to the <>.\n\nFor using the function syntax, or adding <>, you can use the\n<>.\n\n`:` returns true if the provided query matches the row.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "boolean", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "date", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "date_nanos", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "double", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "integer", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "long", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "double", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "integer", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "long", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "ip", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "double", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "integer", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "long", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "double", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "integer", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "long", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "unsigned_long", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "version", - "optional" : false, - "description" : "Value to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM books \n| WHERE MATCH(author, \"Faulkner\")\n| KEEP book_no, author \n| SORT book_no \n| LIMIT 5" - ], - "preview" : true, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/max.json b/docs/reference/esql/functions/kibana/definition/max.json deleted file mode 100644 index 7f3d2215ee099..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/max.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "max", - "description" : "The maximum value of a field.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "FROM employees\n| STATS MAX(languages)", - "FROM employees\n| STATS max_avg_salary_change = MAX(MV_AVG(salary_change))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/md5.json b/docs/reference/esql/functions/kibana/definition/md5.json deleted file mode 100644 index b631f7816cb5f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/md5.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "md5", - "description" : "Computes the MD5 hash of the input.", - "signatures" : [ - { - "params" : [ - { - "name" : "input", - "type" : "keyword", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "input", - "type" : "text", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM sample_data \n| WHERE message != \"Connection error\"\n| EVAL md5 = md5(message)\n| KEEP message, md5;" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/median.json b/docs/reference/esql/functions/kibana/definition/median.json deleted file mode 100644 index c29ae46927163..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/median.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "median", - "description" : "The value that is greater than half of all values and less than half of all values, also known as the 50% <>.", - "note" : "Like <>, `MEDIAN` is <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM employees\n| STATS MEDIAN(salary), PERCENTILE(salary, 50)", - "FROM employees\n| STATS median_max_salary_change = MEDIAN(MV_MAX(salary_change))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/median_absolute_deviation.json b/docs/reference/esql/functions/kibana/definition/median_absolute_deviation.json deleted file mode 100644 index 06fc77d782346..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/median_absolute_deviation.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "median_absolute_deviation", - "description" : "Returns the median absolute deviation, a measure of variability. It is a robust statistic, meaning that it is useful for describing data that may have outliers, or may not be normally distributed. For such data it can be more descriptive than standard deviation.\n\nIt is calculated as the median of each data point's deviation from the median of the entire sample. That is, for a random variable `X`, the median absolute deviation is `median(|median(X) - X|)`.", - "note" : "Like <>, `MEDIAN_ABSOLUTE_DEVIATION` is <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM employees\n| STATS MEDIAN(salary), MEDIAN_ABSOLUTE_DEVIATION(salary)", - "FROM employees\n| STATS m_a_d_max_salary_change = MEDIAN_ABSOLUTE_DEVIATION(MV_MAX(salary_change))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/min.json b/docs/reference/esql/functions/kibana/definition/min.json deleted file mode 100644 index 74e3fd8208f1b..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/min.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "min", - "description" : "The minimum value of a field.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "FROM employees\n| STATS MIN(languages)", - "FROM employees\n| STATS min_avg_salary_change = MIN(MV_AVG(salary_change))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mod.json b/docs/reference/esql/functions/kibana/definition/mod.json deleted file mode 100644 index 194cbdcc4eb9e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mod.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "%", - "name" : "mod", - "description" : "Divide one number by another and return the remainder. If either field is <> then the result is `null`.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mul.json b/docs/reference/esql/functions/kibana/definition/mul.json deleted file mode 100644 index e62da0a6d0721..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mul.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "*", - "name" : "mul", - "description" : "Multiply two numbers together. If either field is <> then the result is `null`.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_append.json b/docs/reference/esql/functions/kibana/definition/mv_append.json deleted file mode 100644 index 7cbcc678464c7..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_append.json +++ /dev/null @@ -1,316 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_append", - "description" : "Concatenates values of two multi-value fields.", - "signatures" : [ - { - "params" : [ - { - "name" : "field1", - "type" : "boolean", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "boolean", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "cartesian_point", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "cartesian_point", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "cartesian_shape", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "cartesian_shape", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "date", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "date", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "date_nanos", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "date_nanos", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "double", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "geo_point", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "geo_point", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "geo_shape", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "geo_shape", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "integer", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "ip", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "ip", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "keyword", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "keyword", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "keyword", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "text", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "long", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "text", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "keyword", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "text", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "text", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "unsigned_long", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "unsigned_long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field1", - "type" : "version", - "optional" : false, - "description" : "" - }, - { - "name" : "field2", - "type" : "version", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_avg.json b/docs/reference/esql/functions/kibana/definition/mv_avg.json deleted file mode 100644 index 65a32cba133ef..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_avg.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_avg", - "description" : "Converts a multivalued field into a single valued field containing the average of all of the values.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=[3, 5, 1, 6]\n| EVAL avg_a = MV_AVG(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_concat.json b/docs/reference/esql/functions/kibana/definition/mv_concat.json deleted file mode 100644 index 6855525abfba5..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_concat.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_concat", - "description" : "Converts a multivalued string expression into a single valued column containing the concatenation of all values separated by a delimiter.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "keyword", - "optional" : false, - "description" : "Delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "text", - "optional" : false, - "description" : "Delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "keyword", - "optional" : false, - "description" : "Delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "text", - "optional" : false, - "description" : "Delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW a=[\"foo\", \"zoo\", \"bar\"]\n| EVAL j = MV_CONCAT(a, \", \")", - "ROW a=[10, 9, 8]\n| EVAL j = MV_CONCAT(TO_STRING(a), \", \")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_count.json b/docs/reference/esql/functions/kibana/definition/mv_count.json deleted file mode 100644 index b82b7b382409d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_count.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_count", - "description" : "Converts a multivalued expression into a single valued column containing a count of the number of values.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - } - ], - "examples" : [ - "ROW a=[\"foo\", \"zoo\", \"bar\"]\n| EVAL count_a = MV_COUNT(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_dedupe.json b/docs/reference/esql/functions/kibana/definition/mv_dedupe.json deleted file mode 100644 index fbce83189ef2b..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_dedupe.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_dedupe", - "description" : "Remove duplicate values from a multivalued field.", - "note" : "`MV_DEDUPE` may, but won't always, sort the values in the column.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a=[\"foo\", \"foo\", \"bar\", \"foo\"]\n| EVAL dedupe_a = MV_DEDUPE(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_first.json b/docs/reference/esql/functions/kibana/definition/mv_first.json deleted file mode 100644 index 32525a7c124f3..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_first.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_first", - "description" : "Converts a multivalued expression into a single valued column containing the\nfirst value. This is most useful when reading from a function that emits\nmultivalued columns in a known order like <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a=\"foo;bar;baz\"\n| EVAL first_a = MV_FIRST(SPLIT(a, \";\"))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_last.json b/docs/reference/esql/functions/kibana/definition/mv_last.json deleted file mode 100644 index f11482b69824c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_last.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_last", - "description" : "Converts a multivalue expression into a single valued column containing the last\nvalue. This is most useful when reading from a function that emits multivalued\ncolumns in a known order like <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a=\"foo;bar;baz\"\n| EVAL last_a = MV_LAST(SPLIT(a, \";\"))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_max.json b/docs/reference/esql/functions/kibana/definition/mv_max.json deleted file mode 100644 index 65b8d801edabd..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_max.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_max", - "description" : "Converts a multivalued expression into a single valued column containing the maximum value.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a=[3, 5, 1]\n| EVAL max_a = MV_MAX(a)", - "ROW a=[\"foo\", \"zoo\", \"bar\"]\n| EVAL max_a = MV_MAX(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_median.json b/docs/reference/esql/functions/kibana/definition/mv_median.json deleted file mode 100644 index 3ba870023cb47..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_median.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_median", - "description" : "Converts a multivalued field into a single valued field containing the median value.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "examples" : [ - "ROW a=[3, 5, 1]\n| EVAL median_a = MV_MEDIAN(a)", - "ROW a=[3, 7, 1, 6]\n| EVAL median_a = MV_MEDIAN(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_median_absolute_deviation.json b/docs/reference/esql/functions/kibana/definition/mv_median_absolute_deviation.json deleted file mode 100644 index e4beb343cd20d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_median_absolute_deviation.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_median_absolute_deviation", - "description" : "Converts a multivalued field into a single valued field containing the median absolute deviation.\n\nIt is calculated as the median of each data point's deviation from the median of the entire sample. That is, for a random variable `X`, the median absolute deviation is `median(|median(X) - X|)`.", - "note" : "If the field has an even number of values, the medians will be calculated as the average of the middle two values. If the value is not a floating point number, the averages are rounded towards 0.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "examples" : [ - "ROW values = [0, 2, 5, 6]\n| EVAL median_absolute_deviation = MV_MEDIAN_ABSOLUTE_DEVIATION(values), median = MV_MEDIAN(values)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_min.json b/docs/reference/esql/functions/kibana/definition/mv_min.json deleted file mode 100644 index ef36cee912d5c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_min.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_min", - "description" : "Converts a multivalued expression into a single valued column containing the minimum value.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a=[2, 1]\n| EVAL min_a = MV_MIN(a)", - "ROW a=[\"foo\", \"bar\"]\n| EVAL min_a = MV_MIN(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_percentile.json b/docs/reference/esql/functions/kibana/definition/mv_percentile.json deleted file mode 100644 index 7835241ed68ba..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_percentile.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_percentile", - "description" : "Converts a multivalued field into a single valued field containing the value at which a certain percentage of observed values occur.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "double", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "integer", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "long", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "double", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "integer", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "long", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "double", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "integer", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "percentile", - "type" : "long", - "optional" : false, - "description" : "The percentile to calculate. Must be a number between 0 and 100. Numbers out of range will return a null instead." - } - ], - "variadic" : false, - "returnType" : "long" - } - ], - "examples" : [ - "ROW values = [5, 5, 10, 12, 5000]\n| EVAL p50 = MV_PERCENTILE(values, 50), median = MV_MEDIAN(values)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_pseries_weighted_sum.json b/docs/reference/esql/functions/kibana/definition/mv_pseries_weighted_sum.json deleted file mode 100644 index 7935afe3338e3..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_pseries_weighted_sum.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_pseries_weighted_sum", - "description" : "Converts a multivalued expression into a single-valued column by multiplying every element on the input list by its corresponding term in P-Series and computing the sum.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "p", - "type" : "double", - "optional" : false, - "description" : "It is a constant number that represents the 'p' parameter in the P-Series. It impacts every element's contribution to the weighted sum." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a = [70.0, 45.0, 21.0, 21.0, 21.0]\n| EVAL sum = MV_PSERIES_WEIGHTED_SUM(a, 1.5)\n| KEEP sum" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_slice.json b/docs/reference/esql/functions/kibana/definition/mv_slice.json deleted file mode 100644 index f23c0d089d93b..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_slice.json +++ /dev/null @@ -1,374 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_slice", - "description" : "Returns a subset of the multivalued field using the start and end index values.\nThis is most useful when reading from a function that emits multivalued columns\nin a known order like <> or <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position. If `null`, the function returns `null`. The start argument can be negative. An index of -1 is used to specify the last value in the list." - }, - { - "name" : "end", - "type" : "integer", - "optional" : true, - "description" : "End position(included). Optional; if omitted, the position at `start` is returned. The end argument can be negative. An index of -1 is used to specify the last value in the list." - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "row a = [1, 2, 2, 3]\n| eval a1 = mv_slice(a, 1), a2 = mv_slice(a, 2, 3)", - "row a = [1, 2, 2, 3]\n| eval a1 = mv_slice(a, -2), a2 = mv_slice(a, -3, -1)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_sort.json b/docs/reference/esql/functions/kibana/definition/mv_sort.json deleted file mode 100644 index 17a8fb426755c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_sort.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_sort", - "description" : "Sorts a multivalued field in lexicographical order.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Multivalue expression. If `null`, the function returns `null`." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : true, - "description" : "Sort order. The valid options are ASC and DESC, the default is ASC." - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "ROW a = [4, 2, -3, 2]\n| EVAL sa = mv_sort(a), sd = mv_sort(a, \"DESC\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_sum.json b/docs/reference/esql/functions/kibana/definition/mv_sum.json deleted file mode 100644 index 31b0e5e420b70..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_sum.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_sum", - "description" : "Converts a multivalued field into a single valued field containing the sum of all of the values.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "examples" : [ - "ROW a=[3, 5, 6]\n| EVAL sum_a = MV_SUM(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/mv_zip.json b/docs/reference/esql/functions/kibana/definition/mv_zip.json deleted file mode 100644 index fc573834054b7..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/mv_zip.json +++ /dev/null @@ -1,277 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "mv_zip", - "description" : "Combines the values from two multivalued fields with a delimiter that joins them together.", - "signatures" : [ - { - "params" : [ - { - "name" : "string1", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "keyword", - "optional" : true, - "description" : "Delimiter. Optional; if omitted, `,` is used as a default delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "text", - "optional" : true, - "description" : "Delimiter. Optional; if omitted, `,` is used as a default delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "keyword", - "optional" : true, - "description" : "Delimiter. Optional; if omitted, `,` is used as a default delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "text", - "optional" : true, - "description" : "Delimiter. Optional; if omitted, `,` is used as a default delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "keyword", - "optional" : true, - "description" : "Delimiter. Optional; if omitted, `,` is used as a default delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "keyword", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "text", - "optional" : true, - "description" : "Delimiter. Optional; if omitted, `,` is used as a default delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "keyword", - "optional" : true, - "description" : "Delimiter. Optional; if omitted, `,` is used as a default delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string1", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "string2", - "type" : "text", - "optional" : false, - "description" : "Multivalue expression." - }, - { - "name" : "delim", - "type" : "text", - "optional" : true, - "description" : "Delimiter. Optional; if omitted, `,` is used as a default delimiter." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW a = [\"x\", \"y\", \"z\"], b = [\"1\", \"2\"]\n| EVAL c = mv_zip(a, b, \"-\")\n| KEEP a, b, c" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/neg.json b/docs/reference/esql/functions/kibana/definition/neg.json deleted file mode 100644 index 7074ad204d3b0..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/neg.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "-", - "name" : "neg", - "description" : "Returns the negation of the argument.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time interval." - } - ], - "variadic" : false, - "returnType" : "date_period" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time interval." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time interval." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time interval." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time interval." - } - ], - "variadic" : false, - "returnType" : "time_duration" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/not_equals.json b/docs/reference/esql/functions/kibana/definition/not_equals.json deleted file mode 100644 index 42220168d3b03..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/not_equals.json +++ /dev/null @@ -1,462 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "!=", - "name" : "not_equals", - "description" : "Check if two fields are unequal. If either field is <> then the result is `null`.", - "note" : "This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "boolean", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "boolean", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "cartesian_point", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "cartesian_point", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "cartesian_shape", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "cartesian_shape", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "geo_point", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "geo_point", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "geo_shape", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "geo_shape", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "ip", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "keyword", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "text", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - }, - { - "name" : "rhs", - "type" : "version", - "optional" : false, - "description" : "An expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/now.json b/docs/reference/esql/functions/kibana/definition/now.json deleted file mode 100644 index 42831c2faf497..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/now.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "now", - "description" : "Returns current date and time.", - "signatures" : [ - { - "params" : [ ], - "returnType" : "date" - } - ], - "examples" : [ - "ROW current_date = NOW()", - "FROM sample_data\n| WHERE @timestamp > NOW() - 1 hour" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/percentile.json b/docs/reference/esql/functions/kibana/definition/percentile.json deleted file mode 100644 index ea7a950b33c88..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/percentile.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "percentile", - "description" : "Returns the value at which a certain percentage of observed values occur. For example, the 95th percentile is the value which is greater than 95% of the observed values and the 50th percentile is the `MEDIAN`.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "" - }, - { - "name" : "percentile", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM employees\n| STATS p0 = PERCENTILE(salary, 0)\n , p50 = PERCENTILE(salary, 50)\n , p99 = PERCENTILE(salary, 99)", - "FROM employees\n| STATS p80_max_salary_change = PERCENTILE(MV_MAX(salary_change), 80)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/pi.json b/docs/reference/esql/functions/kibana/definition/pi.json deleted file mode 100644 index 0dd720dd69cb6..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/pi.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "pi", - "description" : "Returns Pi, the ratio of a circle's circumference to its diameter.", - "signatures" : [ - { - "params" : [ ], - "returnType" : "double" - } - ], - "examples" : [ - "ROW PI()" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/pow.json b/docs/reference/esql/functions/kibana/definition/pow.json deleted file mode 100644 index 93dda492f087b..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/pow.json +++ /dev/null @@ -1,303 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "pow", - "description" : "Returns the value of `base` raised to the power of `exponent`.", - "note" : "It is still possible to overflow a double result here; in that case, null will be returned.", - "signatures" : [ - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "double", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "long", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "double", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "double", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "long", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "double", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "long", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "long", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "double", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "long", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "base", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression for the base. If `null`, the function returns `null`." - }, - { - "name" : "exponent", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression for the exponent. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW base = 2.0, exponent = 2\n| EVAL result = POW(base, exponent)", - "ROW base = 4, exponent = 0.5\n| EVAL s = POW(base, exponent)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/qstr.json b/docs/reference/esql/functions/kibana/definition/qstr.json deleted file mode 100644 index 14ee536fd3b85..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/qstr.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "qstr", - "description" : "Performs a <>. Returns true if the provided query string matches the row.", - "signatures" : [ - { - "params" : [ - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Query string in Lucene query string format." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='max_determinized_states', values=[10000], description='Maximum number of automaton states required for the query. Default is 10000.'}, {name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='phrase_slop', values=[0], description='Maximum number of positions allowed between matching tokens for phrases.'}, {name='default_field', values=[standard], description='Default field to search if no field is provided in the query string. Supports wildcards (*).'}, {name='allow_leading_wildcard', values=[true, false], description='If true, the wildcard characters * and ? are allowed as the first character of the query string.'}, {name='minimum_should_match', values=[standard], description='Minimum number of clauses that must match for a document to be returned.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_prefix_length', values=[0], description='Number of beginning characters left unchanged for fuzzy matching. Defaults to 0.'}, {name='time_zone', values=[standard], description='Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query string to UTC.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='rewrite', values=[standard], description='Method used to rewrite the query.'}, {name='default_operator', values=[OR, AND], description='Default boolean logic used to interpret text in the query string if no operators are specified.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='fuzzy_max_expansions', values=[50], description='Maximum number of terms to which the query expands for fuzzy matching. Defaults to 50.'}, {name='quote_analyzer', values=[standard], description='Analyzer used to convert quoted text in the query string into tokens.'}, {name='allow_wildcard', values=[false, true], description='If true, the query attempts to analyze wildcard terms in the query string.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='quote_field_suffix', values=[standard], description='Suffix appended to quoted text in the query string.'}, {name='enable_position_increments', values=[true, false], description='If true, enable position increments in queries constructed from a query_string search. Defaults to true.'}, {name='fields', values=[standard], description='Array of fields to search. Supports wildcards (*).'}", - "optional" : true, - "description" : "(Optional) Additional options for Query String as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "query", - "type" : "text", - "optional" : false, - "description" : "Query string in Lucene query string format." - }, - { - "name" : "options", - "type" : "function_named_parameters", - "mapParams" : "{name='max_determinized_states', values=[10000], description='Maximum number of automaton states required for the query. Default is 10000.'}, {name='fuzziness', values=[AUTO, 1, 2], description='Maximum edit distance allowed for matching.'}, {name='auto_generate_synonyms_phrase_query', values=[true, false], description='If true, match phrase queries are automatically created for multi-term synonyms.'}, {name='phrase_slop', values=[0], description='Maximum number of positions allowed between matching tokens for phrases.'}, {name='default_field', values=[standard], description='Default field to search if no field is provided in the query string. Supports wildcards (*).'}, {name='allow_leading_wildcard', values=[true, false], description='If true, the wildcard characters * and ? are allowed as the first character of the query string.'}, {name='minimum_should_match', values=[standard], description='Minimum number of clauses that must match for a document to be returned.'}, {name='fuzzy_transpositions', values=[true, false], description='If true, edits for fuzzy matching include transpositions of two adjacent characters (ab → ba).'}, {name='fuzzy_prefix_length', values=[0], description='Number of beginning characters left unchanged for fuzzy matching. Defaults to 0.'}, {name='time_zone', values=[standard], description='Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query string to UTC.'}, {name='lenient', values=[true, false], description='If false, format-based errors, such as providing a text query value for a numeric field, are returned.'}, {name='rewrite', values=[standard], description='Method used to rewrite the query.'}, {name='default_operator', values=[OR, AND], description='Default boolean logic used to interpret text in the query string if no operators are specified.'}, {name='analyzer', values=[standard], description='Analyzer used to convert the text in the query value into token.'}, {name='fuzzy_max_expansions', values=[50], description='Maximum number of terms to which the query expands for fuzzy matching. Defaults to 50.'}, {name='quote_analyzer', values=[standard], description='Analyzer used to convert quoted text in the query string into tokens.'}, {name='allow_wildcard', values=[false, true], description='If true, the query attempts to analyze wildcard terms in the query string.'}, {name='boost', values=[2.5], description='Floating point number used to decrease or increase the relevance scores of the query.'}, {name='quote_field_suffix', values=[standard], description='Suffix appended to quoted text in the query string.'}, {name='enable_position_increments', values=[true, false], description='If true, enable position increments in queries constructed from a query_string search. Defaults to true.'}, {name='fields', values=[standard], description='Array of fields to search. Supports wildcards (*).'}", - "optional" : true, - "description" : "(Optional) Additional options for Query String as <>. See <> for more information." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM books \n| WHERE QSTR(\"author: Faulkner\")\n| KEEP book_no, author \n| SORT book_no \n| LIMIT 5" - ], - "preview" : true, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/repeat.json b/docs/reference/esql/functions/kibana/definition/repeat.json deleted file mode 100644 index 2eb739f0d0bc0..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/repeat.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "repeat", - "description" : "Returns a string constructed by concatenating `string` with itself the specified `number` of times.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Number times to repeat." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Number times to repeat." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW a = \"Hello!\"\n| EVAL triple_a = REPEAT(a, 3)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/replace.json b/docs/reference/esql/functions/kibana/definition/replace.json deleted file mode 100644 index b512019a9951a..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/replace.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "replace", - "description" : "The function substitutes in the string `str` any match of the regular expression `regex`\nwith the replacement string `newStr`.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "regex", - "type" : "keyword", - "optional" : false, - "description" : "Regular expression." - }, - { - "name" : "newString", - "type" : "keyword", - "optional" : false, - "description" : "Replacement string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "regex", - "type" : "keyword", - "optional" : false, - "description" : "Regular expression." - }, - { - "name" : "newString", - "type" : "text", - "optional" : false, - "description" : "Replacement string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "regex", - "type" : "text", - "optional" : false, - "description" : "Regular expression." - }, - { - "name" : "newString", - "type" : "keyword", - "optional" : false, - "description" : "Replacement string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "regex", - "type" : "text", - "optional" : false, - "description" : "Regular expression." - }, - { - "name" : "newString", - "type" : "text", - "optional" : false, - "description" : "Replacement string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "regex", - "type" : "keyword", - "optional" : false, - "description" : "Regular expression." - }, - { - "name" : "newString", - "type" : "keyword", - "optional" : false, - "description" : "Replacement string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "regex", - "type" : "keyword", - "optional" : false, - "description" : "Regular expression." - }, - { - "name" : "newString", - "type" : "text", - "optional" : false, - "description" : "Replacement string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "regex", - "type" : "text", - "optional" : false, - "description" : "Regular expression." - }, - { - "name" : "newString", - "type" : "keyword", - "optional" : false, - "description" : "Replacement string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression." - }, - { - "name" : "regex", - "type" : "text", - "optional" : false, - "description" : "Regular expression." - }, - { - "name" : "newString", - "type" : "text", - "optional" : false, - "description" : "Replacement string." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW str = \"Hello World\"\n| EVAL str = REPLACE(str, \"World\", \"Universe\")\n| KEEP str" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/reverse.json b/docs/reference/esql/functions/kibana/definition/reverse.json deleted file mode 100644 index 2ebf63fa5787c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/reverse.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "reverse", - "description" : "Returns a new string representing the input string in reverse order.", - "signatures" : [ - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW message = \"Some Text\" | EVAL message_reversed = REVERSE(message);", - "ROW bending_arts = \"💧🪨🔥💨\" | EVAL bending_arts_reversed = REVERSE(bending_arts);" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/right.json b/docs/reference/esql/functions/kibana/definition/right.json deleted file mode 100644 index 84408f082db5a..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/right.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "right", - "description" : "Return the substring that extracts 'length' chars from 'str' starting from the right.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "The string from which to returns a substring." - }, - { - "name" : "length", - "type" : "integer", - "optional" : false, - "description" : "The number of characters to return." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "The string from which to returns a substring." - }, - { - "name" : "length", - "type" : "integer", - "optional" : false, - "description" : "The number of characters to return." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM employees\n| KEEP last_name\n| EVAL right = RIGHT(last_name, 3)\n| SORT last_name ASC\n| LIMIT 5" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/rlike.json b/docs/reference/esql/functions/kibana/definition/rlike.json deleted file mode 100644 index 88d6c7d6bb9b2..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/rlike.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "RLIKE", - "name" : "rlike", - "description" : "Use `RLIKE` to filter data based on string patterns using using\n<>. `RLIKE` usually acts on a field placed on\nthe left-hand side of the operator, but it can also act on a constant (literal)\nexpression. The right-hand side of the operator represents the pattern.", - "signatures" : [ - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "A literal value." - }, - { - "name" : "pattern", - "type" : "keyword", - "optional" : false, - "description" : "A regular expression." - } - ], - "variadic" : true, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "A literal value." - }, - { - "name" : "pattern", - "type" : "keyword", - "optional" : false, - "description" : "A regular expression." - } - ], - "variadic" : true, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM employees\n| WHERE first_name RLIKE \"\"\".leja.*\"\"\"\n| KEEP first_name, last_name" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/round.json b/docs/reference/esql/functions/kibana/definition/round.json deleted file mode 100644 index a364dbbed0b5a..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/round.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "round", - "description" : "Rounds a number to the specified number of decimal places.\nDefaults to 0, which returns the nearest integer. If the\nprecision is a negative number, rounds to the number of digits left\nof the decimal point.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - }, - { - "name" : "decimals", - "type" : "integer", - "optional" : true, - "description" : "The number of decimal places to round to. Defaults to 0. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - }, - { - "name" : "decimals", - "type" : "long", - "optional" : true, - "description" : "The number of decimal places to round to. Defaults to 0. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - }, - { - "name" : "decimals", - "type" : "integer", - "optional" : true, - "description" : "The number of decimal places to round to. Defaults to 0. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - }, - { - "name" : "decimals", - "type" : "long", - "optional" : true, - "description" : "The number of decimal places to round to. Defaults to 0. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - }, - { - "name" : "decimals", - "type" : "integer", - "optional" : true, - "description" : "The number of decimal places to round to. Defaults to 0. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - }, - { - "name" : "decimals", - "type" : "long", - "optional" : true, - "description" : "The number of decimal places to round to. Defaults to 0. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - }, - { - "name" : "decimals", - "type" : "integer", - "optional" : true, - "description" : "The number of decimal places to round to. Defaults to 0. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "The numeric value to round. If `null`, the function returns `null`." - }, - { - "name" : "decimals", - "type" : "long", - "optional" : true, - "description" : "The number of decimal places to round to. Defaults to 0. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "examples" : [ - "FROM employees\n| KEEP first_name, last_name, height\n| EVAL height_ft = ROUND(height * 3.281, 1)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/rtrim.json b/docs/reference/esql/functions/kibana/definition/rtrim.json deleted file mode 100644 index ef6c93f9fa172..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/rtrim.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "rtrim", - "description" : "Removes trailing whitespaces from a string.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW message = \" some text \", color = \" red \"\n| EVAL message = RTRIM(message)\n| EVAL color = RTRIM(color)\n| EVAL message = CONCAT(\"'\", message, \"'\")\n| EVAL color = CONCAT(\"'\", color, \"'\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/sha1.json b/docs/reference/esql/functions/kibana/definition/sha1.json deleted file mode 100644 index 18fa2c33ae0d5..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/sha1.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "sha1", - "description" : "Computes the SHA1 hash of the input.", - "signatures" : [ - { - "params" : [ - { - "name" : "input", - "type" : "keyword", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "input", - "type" : "text", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM sample_data \n| WHERE message != \"Connection error\"\n| EVAL sha1 = sha1(message)\n| KEEP message, sha1;" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/sha256.json b/docs/reference/esql/functions/kibana/definition/sha256.json deleted file mode 100644 index 7ad0e2c5500da..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/sha256.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "sha256", - "description" : "Computes the SHA256 hash of the input.", - "signatures" : [ - { - "params" : [ - { - "name" : "input", - "type" : "keyword", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "input", - "type" : "text", - "optional" : false, - "description" : "Input to hash." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM sample_data \n| WHERE message != \"Connection error\"\n| EVAL sha256 = sha256(message)\n| KEEP message, sha256;" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/signum.json b/docs/reference/esql/functions/kibana/definition/signum.json deleted file mode 100644 index 20667b8cb683e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/signum.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "signum", - "description" : "Returns the sign of the given number.\nIt returns `-1` for negative numbers, `0` for `0` and `1` for positive numbers.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW d = 100.0\n| EVAL s = SIGNUM(d)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/sin.json b/docs/reference/esql/functions/kibana/definition/sin.json deleted file mode 100644 index efdf96a3b8d38..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/sin.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "sin", - "description" : "Returns the sine of an angle.", - "signatures" : [ - { - "params" : [ - { - "name" : "angle", - "type" : "double", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "integer", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "long", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "unsigned_long", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=1.8 \n| EVAL sin=SIN(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/sinh.json b/docs/reference/esql/functions/kibana/definition/sinh.json deleted file mode 100644 index 3ed3eaa23c9ca..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/sinh.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "sinh", - "description" : "Returns the hyperbolic sine of a number.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=1.8 \n| EVAL sinh=SINH(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/space.json b/docs/reference/esql/functions/kibana/definition/space.json deleted file mode 100644 index cc1223de2cdf2..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/space.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "space", - "description" : "Returns a string made of `number` spaces.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Number of spaces in result." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW message = CONCAT(\"Hello\", SPACE(1), \"World!\");" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/split.json b/docs/reference/esql/functions/kibana/definition/split.json deleted file mode 100644 index 87a7b0a0f87c6..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/split.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "split", - "description" : "Split a single valued string into multiple strings.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "delim", - "type" : "keyword", - "optional" : false, - "description" : "Delimiter. Only single byte delimiters are currently supported." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "delim", - "type" : "text", - "optional" : false, - "description" : "Delimiter. Only single byte delimiters are currently supported." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "delim", - "type" : "keyword", - "optional" : false, - "description" : "Delimiter. Only single byte delimiters are currently supported." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "delim", - "type" : "text", - "optional" : false, - "description" : "Delimiter. Only single byte delimiters are currently supported." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW words=\"foo;bar;baz;qux;quux;corge\"\n| EVAL word = SPLIT(words, \";\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/sqrt.json b/docs/reference/esql/functions/kibana/definition/sqrt.json deleted file mode 100644 index 6985cb20043c7..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/sqrt.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "sqrt", - "description" : "Returns the square root of a number. The input can be any numeric value, the return value is always a double.\nSquare roots of negative numbers and infinities are null.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW d = 100.0\n| EVAL s = SQRT(d)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_centroid_agg.json b/docs/reference/esql/functions/kibana/definition/st_centroid_agg.json deleted file mode 100644 index 62bc97475432f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_centroid_agg.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "st_centroid_agg", - "description" : "Calculate the spatial centroid over a field with spatial point geometry type.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "geo_point" - } - ], - "examples" : [ - "FROM airports\n| STATS centroid=ST_CENTROID_AGG(location)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_contains.json b/docs/reference/esql/functions/kibana/definition/st_contains.json deleted file mode 100644 index 7d78518f91da1..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_contains.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_contains", - "description" : "Returns whether the first geometry contains the second geometry.\nThis is the inverse of the <> function.", - "signatures" : [ - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM airport_city_boundaries\n| WHERE ST_CONTAINS(city_boundary, TO_GEOSHAPE(\"POLYGON((109.35 18.3, 109.45 18.3, 109.45 18.4, 109.35 18.4, 109.35 18.3))\"))\n| KEEP abbrev, airport, region, city, city_location" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_disjoint.json b/docs/reference/esql/functions/kibana/definition/st_disjoint.json deleted file mode 100644 index f0da69103ea68..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_disjoint.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_disjoint", - "description" : "Returns whether the two geometries or geometry columns are disjoint.\nThis is the inverse of the <> function.\nIn mathematical terms: ST_Disjoint(A, B) ⇔ A ⋂ B = ∅", - "signatures" : [ - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM airport_city_boundaries\n| WHERE ST_DISJOINT(city_boundary, TO_GEOSHAPE(\"POLYGON((-10 -60, 120 -60, 120 60, -10 60, -10 -60))\"))\n| KEEP abbrev, airport, region, city, city_location" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_distance.json b/docs/reference/esql/functions/kibana/definition/st_distance.json deleted file mode 100644 index 74492b6e30742..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_distance.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_distance", - "description" : "Computes the distance between two points.\nFor cartesian geometries, this is the pythagorean distance in the same units as the original coordinates.\nFor geographic geometries, this is the circular distance along the great circle in meters.", - "signatures" : [ - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_point` and `cartesian_point` parameters." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_point` and `cartesian_point` parameters." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM airports\n| WHERE abbrev == \"CPH\"\n| EVAL distance = ST_DISTANCE(location, city_location)\n| KEEP abbrev, name, location, city_location, distance" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_envelope.json b/docs/reference/esql/functions/kibana/definition/st_envelope.json deleted file mode 100644 index 83f4bad5b826f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_envelope.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_envelope", - "description" : "Determines the minimum bounding box of the supplied geometry.", - "signatures" : [ - { - "params" : [ - { - "name" : "geometry", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "geometry", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "geometry", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "geometry", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - } - ], - "examples" : [ - "FROM airport_city_boundaries\n| WHERE abbrev == \"CPH\"\n| EVAL envelope = ST_ENVELOPE(city_boundary)\n| KEEP abbrev, airport, envelope" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_extent_agg.json b/docs/reference/esql/functions/kibana/definition/st_extent_agg.json deleted file mode 100644 index 19afcc59e38a4..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_extent_agg.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "st_extent_agg", - "description" : "Calculate the spatial extent over a field with geometry type. Returns a bounding box for all values of the field.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "geo_shape" - } - ], - "examples" : [ - "FROM airports\n| WHERE country == \"India\"\n| STATS extent = ST_EXTENT_AGG(location)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_intersects.json b/docs/reference/esql/functions/kibana/definition/st_intersects.json deleted file mode 100644 index b35df6711b338..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_intersects.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_intersects", - "description" : "Returns true if two geometries intersect.\nThey intersect if they have any point in common, including their interior points\n(points along lines or within polygons).\nThis is the inverse of the <> function.\nIn mathematical terms: ST_Intersects(A, B) ⇔ A ⋂ B ≠ ∅", - "signatures" : [ - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM airports\n| WHERE ST_INTERSECTS(location, TO_GEOSHAPE(\"POLYGON((42 14, 43 14, 43 15, 42 15, 42 14))\"))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_within.json b/docs/reference/esql/functions/kibana/definition/st_within.json deleted file mode 100644 index 3ab419683f021..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_within.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_within", - "description" : "Returns whether the first geometry is within the second geometry.\nThis is the inverse of the <> function.", - "signatures" : [ - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "geomA", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`." - }, - { - "name" : "geomB", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM airport_city_boundaries\n| WHERE ST_WITHIN(city_boundary, TO_GEOSHAPE(\"POLYGON((109.1 18.15, 109.6 18.15, 109.6 18.65, 109.1 18.65, 109.1 18.15))\"))\n| KEEP abbrev, airport, region, city, city_location" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_x.json b/docs/reference/esql/functions/kibana/definition/st_x.json deleted file mode 100644 index 27378edd25ff8..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_x.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_x", - "description" : "Extracts the `x` coordinate from the supplied point.\nIf the points is of type `geo_point` this is equivalent to extracting the `longitude` value.", - "signatures" : [ - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW point = TO_GEOPOINT(\"POINT(42.97109629958868 14.7552534006536)\")\n| EVAL x = ST_X(point), y = ST_Y(point)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_xmax.json b/docs/reference/esql/functions/kibana/definition/st_xmax.json deleted file mode 100644 index c1223ecae7349..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_xmax.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_xmax", - "description" : "Extracts the maximum value of the `x` coordinates from the supplied geometry.\nIf the geometry is of type `geo_point` or `geo_shape` this is equivalent to extracting the maximum `longitude` value.", - "signatures" : [ - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM airport_city_boundaries\n| WHERE abbrev == \"CPH\"\n| EVAL envelope = ST_ENVELOPE(city_boundary)\n| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope)\n| KEEP abbrev, airport, xmin, xmax, ymin, ymax" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_xmin.json b/docs/reference/esql/functions/kibana/definition/st_xmin.json deleted file mode 100644 index 20c4bd8cca79f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_xmin.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_xmin", - "description" : "Extracts the minimum value of the `x` coordinates from the supplied geometry.\nIf the geometry is of type `geo_point` or `geo_shape` this is equivalent to extracting the minimum `longitude` value.", - "signatures" : [ - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM airport_city_boundaries\n| WHERE abbrev == \"CPH\"\n| EVAL envelope = ST_ENVELOPE(city_boundary)\n| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope)\n| KEEP abbrev, airport, xmin, xmax, ymin, ymax" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_y.json b/docs/reference/esql/functions/kibana/definition/st_y.json deleted file mode 100644 index 42f37d0346b1f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_y.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_y", - "description" : "Extracts the `y` coordinate from the supplied point.\nIf the points is of type `geo_point` this is equivalent to extracting the `latitude` value.", - "signatures" : [ - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW point = TO_GEOPOINT(\"POINT(42.97109629958868 14.7552534006536)\")\n| EVAL x = ST_X(point), y = ST_Y(point)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_ymax.json b/docs/reference/esql/functions/kibana/definition/st_ymax.json deleted file mode 100644 index 83a8070834e1a..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_ymax.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_ymax", - "description" : "Extracts the maximum value of the `y` coordinates from the supplied geometry.\nIf the geometry is of type `geo_point` or `geo_shape` this is equivalent to extracting the maximum `latitude` value.", - "signatures" : [ - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM airport_city_boundaries\n| WHERE abbrev == \"CPH\"\n| EVAL envelope = ST_ENVELOPE(city_boundary)\n| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope)\n| KEEP abbrev, airport, xmin, xmax, ymin, ymax" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/st_ymin.json b/docs/reference/esql/functions/kibana/definition/st_ymin.json deleted file mode 100644 index 21051d02cb6d3..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/st_ymin.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "st_ymin", - "description" : "Extracts the minimum value of the `y` coordinates from the supplied geometry.\nIf the geometry is of type `geo_point` or `geo_shape` this is equivalent to extracting the minimum `latitude` value.", - "signatures" : [ - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_point", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "point", - "type" : "geo_shape", - "optional" : false, - "description" : "Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM airport_city_boundaries\n| WHERE abbrev == \"CPH\"\n| EVAL envelope = ST_ENVELOPE(city_boundary)\n| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope)\n| KEEP abbrev, airport, xmin, xmax, ymin, ymax" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/starts_with.json b/docs/reference/esql/functions/kibana/definition/starts_with.json deleted file mode 100644 index bad7fa1d34b69..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/starts_with.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "starts_with", - "description" : "Returns a boolean that indicates whether a keyword string starts with another string.", - "signatures" : [ - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "prefix", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "prefix", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "prefix", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "prefix", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM employees\n| KEEP last_name\n| EVAL ln_S = STARTS_WITH(last_name, \"B\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/std_dev.json b/docs/reference/esql/functions/kibana/definition/std_dev.json deleted file mode 100644 index f31d3345421d9..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/std_dev.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "std_dev", - "description" : "The standard deviation of a numeric field.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM employees\n| STATS STD_DEV(height)", - "FROM employees\n| STATS stddev_salary_change = STD_DEV(MV_MAX(salary_change))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/sub.json b/docs/reference/esql/functions/kibana/definition/sub.json deleted file mode 100644 index 4555e12a00dd4..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/sub.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "operator", - "operator" : "-", - "name" : "sub", - "description" : "Subtract one number from another. If either field is <> then the result is `null`.", - "signatures" : [ - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_nanos", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_period", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_period" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "double", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "integer", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "long", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "date_nanos", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "time_duration", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "time_duration" - }, - { - "params" : [ - { - "name" : "lhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value or a date time value." - }, - { - "name" : "rhs", - "type" : "unsigned_long", - "optional" : false, - "description" : "A numeric value or a date time value." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/substring.json b/docs/reference/esql/functions/kibana/definition/substring.json deleted file mode 100644 index c6260c5040e58..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/substring.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "substring", - "description" : "Returns a substring of a string, specified by a start position and an optional length.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position." - }, - { - "name" : "length", - "type" : "integer", - "optional" : true, - "description" : "Length of the substring from the start position. Optional; if omitted, all positions after `start` are returned." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - }, - { - "name" : "start", - "type" : "integer", - "optional" : false, - "description" : "Start position." - }, - { - "name" : "length", - "type" : "integer", - "optional" : true, - "description" : "Length of the substring from the start position. Optional; if omitted, all positions after `start` are returned." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM employees\n| KEEP last_name\n| EVAL ln_sub = SUBSTRING(last_name, 1, 3)", - "FROM employees\n| KEEP last_name\n| EVAL ln_sub = SUBSTRING(last_name, -3, 3)", - "FROM employees\n| KEEP last_name\n| EVAL ln_sub = SUBSTRING(last_name, 2)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/sum.json b/docs/reference/esql/functions/kibana/definition/sum.json deleted file mode 100644 index 385a2e4d41399..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/sum.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "sum", - "description" : "The sum of a numeric expression.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "long" - } - ], - "examples" : [ - "FROM employees\n| STATS SUM(languages)", - "FROM employees\n| STATS total_salary_changes = SUM(MV_MAX(salary_change))" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/tan.json b/docs/reference/esql/functions/kibana/definition/tan.json deleted file mode 100644 index af28eace4c591..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/tan.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "tan", - "description" : "Returns the tangent of an angle.", - "signatures" : [ - { - "params" : [ - { - "name" : "angle", - "type" : "double", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "integer", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "long", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "angle", - "type" : "unsigned_long", - "optional" : false, - "description" : "An angle, in radians. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=1.8 \n| EVAL tan=TAN(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/tanh.json b/docs/reference/esql/functions/kibana/definition/tanh.json deleted file mode 100644 index a36edcc1e88f4..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/tanh.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "tanh", - "description" : "Returns the hyperbolic tangent of a number.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Numeric expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW a=1.8 \n| EVAL tanh=TANH(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/tau.json b/docs/reference/esql/functions/kibana/definition/tau.json deleted file mode 100644 index b5090e8a39a81..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/tau.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "tau", - "description" : "Returns the ratio of a circle's circumference to its radius.", - "signatures" : [ - { - "params" : [ ], - "returnType" : "double" - } - ], - "examples" : [ - "ROW TAU()" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/term.json b/docs/reference/esql/functions/kibana/definition/term.json deleted file mode 100644 index 1a0ea7bf8a4ee..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/term.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "term", - "description" : "Performs a Term query on the specified field. Returns true if the provided term matches the row.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Term you wish to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "text", - "optional" : false, - "description" : "Term you wish to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "keyword", - "optional" : false, - "description" : "Term you wish to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Field that the query will target." - }, - { - "name" : "query", - "type" : "text", - "optional" : false, - "description" : "Term you wish to find in the provided field." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "FROM books \n| WHERE TERM(author, \"gabriel\") \n| KEEP book_no, title\n| LIMIT 3;" - ], - "preview" : true, - "snapshot_only" : true -} diff --git a/docs/reference/esql/functions/kibana/definition/to_base64.json b/docs/reference/esql/functions/kibana/definition/to_base64.json deleted file mode 100644 index 39014ceb9a5c2..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_base64.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_base64", - "description" : "Encode a string to a base64 string.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "A string." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "A string." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "row a = \"elastic\" \n| eval e = to_base64(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_boolean.json b/docs/reference/esql/functions/kibana/definition/to_boolean.json deleted file mode 100644 index d295c826f5767..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_boolean.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_boolean", - "description" : "Converts an input value to a boolean value.\nA string value of *true* will be case-insensitive converted to the Boolean *true*.\nFor anything else, including the empty string, the function will return *false*.\nThe numerical value of *0* will be converted to *false*, anything else will be converted to *true*.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "boolean" - } - ], - "examples" : [ - "ROW str = [\"true\", \"TRuE\", \"false\", \"\", \"yes\", \"1\"]\n| EVAL bool = TO_BOOLEAN(str)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_cartesianpoint.json b/docs/reference/esql/functions/kibana/definition/to_cartesianpoint.json deleted file mode 100644 index f7303457120f4..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_cartesianpoint.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_cartesianpoint", - "description" : "Converts an input value to a `cartesian_point` value.\nA string will only be successfully converted if it respects WKT Point format.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - } - ], - "examples" : [ - "ROW wkt = [\"POINT(4297.11 -1475.53)\", \"POINT(7580.93 2272.77)\"]\n| MV_EXPAND wkt\n| EVAL pt = TO_CARTESIANPOINT(wkt)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_cartesianshape.json b/docs/reference/esql/functions/kibana/definition/to_cartesianshape.json deleted file mode 100644 index 6a08d531523ad..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_cartesianshape.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_cartesianshape", - "description" : "Converts an input value to a `cartesian_shape` value.\nA string will only be successfully converted if it respects WKT format.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - } - ], - "examples" : [ - "ROW wkt = [\"POINT(4297.11 -1475.53)\", \"POLYGON ((3339584.72 1118889.97, 4452779.63 4865942.27, 2226389.81 4865942.27, 1113194.90 2273030.92, 3339584.72 1118889.97))\"]\n| MV_EXPAND wkt\n| EVAL geom = TO_CARTESIANSHAPE(wkt)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_date_nanos.json b/docs/reference/esql/functions/kibana/definition/to_date_nanos.json deleted file mode 100644 index bc74476a4867c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_date_nanos.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_date_nanos", - "description" : "Converts an input to a nanosecond-resolution date value (aka date_nanos).", - "note" : "The range for date nanos is 1970-01-01T00:00:00.000000000Z to 2262-04-11T23:47:16.854775807Z, attepting to convertvalues outside of that range will result in null with a warning.. Additionally, integers cannot be converted into date nanos, as the range of integer nanoseconds only covers about 2 seconds after epoch.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date_nanos" - } - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_dateperiod.json b/docs/reference/esql/functions/kibana/definition/to_dateperiod.json deleted file mode 100644 index 790c7ec92401c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_dateperiod.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_dateperiod", - "description" : "Converts an input value into a `date_period` value.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "date_period", - "optional" : false, - "description" : "Input value. The input is a valid constant date period expression." - } - ], - "variadic" : false, - "returnType" : "date_period" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input is a valid constant date period expression." - } - ], - "variadic" : false, - "returnType" : "date_period" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input is a valid constant date period expression." - } - ], - "variadic" : false, - "returnType" : "date_period" - } - ], - "examples" : [ - "row x = \"2024-01-01\"::datetime | eval y = x + \"3 DAYS\"::date_period, z = x - to_dateperiod(\"3 days\");" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_datetime.json b/docs/reference/esql/functions/kibana/definition/to_datetime.json deleted file mode 100644 index 90c683cf3767f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_datetime.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_datetime", - "description" : "Converts an input value to a date value.\nA string will only be successfully converted if it's respecting the format `yyyy-MM-dd'T'HH:mm:ss.SSS'Z'`.\nTo convert dates in other formats, use <>.", - "note" : "Note that when converting from nanosecond resolution to millisecond resolution with this function, the nanosecond date is truncated, not rounded.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "date" - } - ], - "examples" : [ - "ROW string = [\"1953-09-02T00:00:00.000Z\", \"1964-06-02T00:00:00.000Z\", \"1964-06-02 00:00:00\"]\n| EVAL datetime = TO_DATETIME(string)", - "ROW int = [0, 1]\n| EVAL dt = TO_DATETIME(int)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_degrees.json b/docs/reference/esql/functions/kibana/definition/to_degrees.json deleted file mode 100644 index 7b1cc51809704..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_degrees.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_degrees", - "description" : "Converts a number in radians to degrees.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW rad = [1.57, 3.14, 4.71]\n| EVAL deg = TO_DEGREES(rad)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_double.json b/docs/reference/esql/functions/kibana/definition/to_double.json deleted file mode 100644 index 09d5341a62a1d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_double.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_double", - "description" : "Converts an input value to a double value. If the input parameter is of a date type,\nits value will be interpreted as milliseconds since the Unix epoch,\nconverted to double. Boolean *true* will be converted to double *1.0*, *false* to *0.0*.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "counter_double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "counter_integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "counter_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW str1 = \"5.20128E11\", str2 = \"foo\"\n| EVAL dbl = TO_DOUBLE(\"520128000000\"), dbl1 = TO_DOUBLE(str1), dbl2 = TO_DOUBLE(str2)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_geopoint.json b/docs/reference/esql/functions/kibana/definition/to_geopoint.json deleted file mode 100644 index 2c465fcfc2f8d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_geopoint.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_geopoint", - "description" : "Converts an input value to a `geo_point` value.\nA string will only be successfully converted if it respects WKT Point format.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "geo_point" - } - ], - "examples" : [ - "ROW wkt = \"POINT(42.97109630194 14.7552534413725)\"\n| EVAL pt = TO_GEOPOINT(wkt)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_geoshape.json b/docs/reference/esql/functions/kibana/definition/to_geoshape.json deleted file mode 100644 index dc05f12e6ee3e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_geoshape.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_geoshape", - "description" : "Converts an input value to a `geo_shape` value.\nA string will only be successfully converted if it respects WKT format.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "geo_shape" - } - ], - "examples" : [ - "ROW wkt = \"POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))\"\n| EVAL geom = TO_GEOSHAPE(wkt)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_integer.json b/docs/reference/esql/functions/kibana/definition/to_integer.json deleted file mode 100644 index 0228d6baaf507..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_integer.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_integer", - "description" : "Converts an input value to an integer value.\nIf the input parameter is of a date type, its value will be interpreted as milliseconds\nsince the Unix epoch, converted to integer.\nBoolean *true* will be converted to integer *1*, *false* to *0*.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "counter_integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "integer" - } - ], - "examples" : [ - "ROW long = [5013792, 2147483647, 501379200000]\n| EVAL int = TO_INTEGER(long)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_ip.json b/docs/reference/esql/functions/kibana/definition/to_ip.json deleted file mode 100644 index 4ec424442c2c1..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_ip.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_ip", - "description" : "Converts an input string to an IP value.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "ip" - } - ], - "examples" : [ - "ROW str1 = \"1.1.1.1\", str2 = \"foo\"\n| EVAL ip1 = TO_IP(str1), ip2 = TO_IP(str2)\n| WHERE CIDR_MATCH(ip1, \"1.0.0.0/8\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_long.json b/docs/reference/esql/functions/kibana/definition/to_long.json deleted file mode 100644 index 5cd920092473f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_long.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_long", - "description" : "Converts an input value to a long value. If the input parameter is of a date type,\nits value will be interpreted as milliseconds since the Unix epoch, converted to long.\nBoolean *true* will be converted to long *1*, *false* to *0*.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "counter_integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "counter_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "long" - } - ], - "examples" : [ - "ROW str1 = \"2147483648\", str2 = \"2147483648.2\", str3 = \"foo\"\n| EVAL long1 = TO_LONG(str1), long2 = TO_LONG(str2), long3 = TO_LONG(str3)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_lower.json b/docs/reference/esql/functions/kibana/definition/to_lower.json deleted file mode 100644 index 22fd8f4fc1b11..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_lower.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_lower", - "description" : "Returns a new string representing the input string converted to lower case.", - "signatures" : [ - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW message = \"Some Text\"\n| EVAL message_lower = TO_LOWER(message)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_radians.json b/docs/reference/esql/functions/kibana/definition/to_radians.json deleted file mode 100644 index 638ef8ec13e8c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_radians.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_radians", - "description" : "Converts a number in degrees to radians.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "ROW deg = [90.0, 180.0, 270.0]\n| EVAL rad = TO_RADIANS(deg)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_string.json b/docs/reference/esql/functions/kibana/definition/to_string.json deleted file mode 100644 index 40e9588b03f85..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_string.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_string", - "description" : "Converts an input value into a string.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW a=10\n| EVAL j = TO_STRING(a)", - "ROW a=[10, 9, 8]\n| EVAL j = TO_STRING(a)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_timeduration.json b/docs/reference/esql/functions/kibana/definition/to_timeduration.json deleted file mode 100644 index 923aa2024f335..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_timeduration.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_timeduration", - "description" : "Converts an input value into a `time_duration` value.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input is a valid constant time duration expression." - } - ], - "variadic" : false, - "returnType" : "time_duration" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input is a valid constant time duration expression." - } - ], - "variadic" : false, - "returnType" : "time_duration" - }, - { - "params" : [ - { - "name" : "field", - "type" : "time_duration", - "optional" : false, - "description" : "Input value. The input is a valid constant time duration expression." - } - ], - "variadic" : false, - "returnType" : "time_duration" - } - ], - "examples" : [ - "row x = \"2024-01-01\"::datetime | eval y = x + \"3 hours\"::time_duration, z = x - to_timeduration(\"3 hours\");" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_unsigned_long.json b/docs/reference/esql/functions/kibana/definition/to_unsigned_long.json deleted file mode 100644 index f7725311b298a..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_unsigned_long.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_unsigned_long", - "description" : "Converts an input value to an unsigned long value. If the input parameter is of a date type,\nits value will be interpreted as milliseconds since the Unix epoch, converted to unsigned long.\nBoolean *true* will be converted to unsigned long *1*, *false* to *0*.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "unsigned_long", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "unsigned_long" - } - ], - "examples" : [ - "ROW str1 = \"2147483648\", str2 = \"2147483648.2\", str3 = \"foo\"\n| EVAL long1 = TO_UNSIGNED_LONG(str1), long2 = TO_ULONG(str2), long3 = TO_UL(str3)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_upper.json b/docs/reference/esql/functions/kibana/definition/to_upper.json deleted file mode 100644 index ac0494b1fb9ec..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_upper.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_upper", - "description" : "Returns a new string representing the input string converted to upper case.", - "signatures" : [ - { - "params" : [ - { - "name" : "str", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "str", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW message = \"Some Text\"\n| EVAL message_upper = TO_UPPER(message)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/to_version.json b/docs/reference/esql/functions/kibana/definition/to_version.json deleted file mode 100644 index 41ad00dc20c9e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/to_version.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "to_version", - "description" : "Converts an input string to a version value.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "version" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "version" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "Input value. The input can be a single- or multi-valued column or an expression." - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - "ROW v = TO_VERSION(\"1.2.3\")" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/top.json b/docs/reference/esql/functions/kibana/definition/top.json deleted file mode 100644 index 82bd80636152c..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/top.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "top", - "description" : "Collects the top values for a field. Includes repeated values.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "The field to collect the top values for." - }, - { - "name" : "limit", - "type" : "integer", - "optional" : false, - "description" : "The maximum number of values to collect." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : false, - "description" : "The order to calculate the top values. Either `asc` or `desc`." - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "The field to collect the top values for." - }, - { - "name" : "limit", - "type" : "integer", - "optional" : false, - "description" : "The maximum number of values to collect." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : false, - "description" : "The order to calculate the top values. Either `asc` or `desc`." - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "The field to collect the top values for." - }, - { - "name" : "limit", - "type" : "integer", - "optional" : false, - "description" : "The maximum number of values to collect." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : false, - "description" : "The order to calculate the top values. Either `asc` or `desc`." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "The field to collect the top values for." - }, - { - "name" : "limit", - "type" : "integer", - "optional" : false, - "description" : "The maximum number of values to collect." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : false, - "description" : "The order to calculate the top values. Either `asc` or `desc`." - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "The field to collect the top values for." - }, - { - "name" : "limit", - "type" : "integer", - "optional" : false, - "description" : "The maximum number of values to collect." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : false, - "description" : "The order to calculate the top values. Either `asc` or `desc`." - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "The field to collect the top values for." - }, - { - "name" : "limit", - "type" : "integer", - "optional" : false, - "description" : "The maximum number of values to collect." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : false, - "description" : "The order to calculate the top values. Either `asc` or `desc`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "The field to collect the top values for." - }, - { - "name" : "limit", - "type" : "integer", - "optional" : false, - "description" : "The maximum number of values to collect." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : false, - "description" : "The order to calculate the top values. Either `asc` or `desc`." - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "The field to collect the top values for." - }, - { - "name" : "limit", - "type" : "integer", - "optional" : false, - "description" : "The maximum number of values to collect." - }, - { - "name" : "order", - "type" : "keyword", - "optional" : false, - "description" : "The order to calculate the top values. Either `asc` or `desc`." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "FROM employees\n| STATS top_salaries = TOP(salary, 3, \"desc\"), top_salary = MAX(salary)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/trim.json b/docs/reference/esql/functions/kibana/definition/trim.json deleted file mode 100644 index eb72d5d041d0f..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/trim.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "scalar", - "name" : "trim", - "description" : "Removes leading and trailing whitespaces from a string.", - "signatures" : [ - { - "params" : [ - { - "name" : "string", - "type" : "keyword", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "string", - "type" : "text", - "optional" : false, - "description" : "String expression. If `null`, the function returns `null`." - } - ], - "variadic" : false, - "returnType" : "keyword" - } - ], - "examples" : [ - "ROW message = \" some text \", color = \" red \"\n| EVAL message = TRIM(message)\n| EVAL color = TRIM(color)" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/values.json b/docs/reference/esql/functions/kibana/definition/values.json deleted file mode 100644 index 0ac74c61cf73d..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/values.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "values", - "description" : "Returns all values in a group as a multivalued field. The order of the returned values isn't guaranteed. If you need the values returned in order use <>.", - "signatures" : [ - { - "params" : [ - { - "name" : "field", - "type" : "boolean", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "boolean" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_point", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "cartesian_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "cartesian_shape", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "cartesian_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "date" - }, - { - "params" : [ - { - "name" : "field", - "type" : "date_nanos", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "date_nanos" - }, - { - "params" : [ - { - "name" : "field", - "type" : "double", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_point", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "geo_point" - }, - { - "params" : [ - { - "name" : "field", - "type" : "geo_shape", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "geo_shape" - }, - { - "params" : [ - { - "name" : "field", - "type" : "integer", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "integer" - }, - { - "params" : [ - { - "name" : "field", - "type" : "ip", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "ip" - }, - { - "params" : [ - { - "name" : "field", - "type" : "keyword", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "long", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "long" - }, - { - "params" : [ - { - "name" : "field", - "type" : "text", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "keyword" - }, - { - "params" : [ - { - "name" : "field", - "type" : "version", - "optional" : false, - "description" : "" - } - ], - "variadic" : false, - "returnType" : "version" - } - ], - "examples" : [ - " FROM employees\n| EVAL first_letter = SUBSTRING(first_name, 0, 1)\n| STATS first_name=MV_SORT(VALUES(first_name)) BY first_letter\n| SORT first_letter" - ], - "preview" : true, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/definition/weighted_avg.json b/docs/reference/esql/functions/kibana/definition/weighted_avg.json deleted file mode 100644 index a14af5345758e..0000000000000 --- a/docs/reference/esql/functions/kibana/definition/weighted_avg.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.", - "type" : "agg", - "name" : "weighted_avg", - "description" : "The weighted average of a numeric expression.", - "signatures" : [ - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "double", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "integer", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "double", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "long", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "double", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "integer", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "integer", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "long", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "double", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "integer", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - }, - { - "params" : [ - { - "name" : "number", - "type" : "long", - "optional" : false, - "description" : "A numeric value." - }, - { - "name" : "weight", - "type" : "long", - "optional" : false, - "description" : "A numeric weight." - } - ], - "variadic" : false, - "returnType" : "double" - } - ], - "examples" : [ - "FROM employees\n| STATS w_avg = WEIGHTED_AVG(salary, height) by languages\n| EVAL w_avg = ROUND(w_avg)\n| KEEP w_avg, languages\n| SORT languages" - ], - "preview" : false, - "snapshot_only" : false -} diff --git a/docs/reference/esql/functions/kibana/docs/abs.md b/docs/reference/esql/functions/kibana/docs/abs.md deleted file mode 100644 index 9dc2c5c76f4f6..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/abs.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### ABS -Returns the absolute value. - -``` -ROW number = -1.0 -| EVAL abs_number = ABS(number) -``` diff --git a/docs/reference/esql/functions/kibana/docs/acos.md b/docs/reference/esql/functions/kibana/docs/acos.md deleted file mode 100644 index d9c05875631d9..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/acos.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### ACOS -Returns the arccosine of `n` as an angle, expressed in radians. - -``` -ROW a=.9 -| EVAL acos=ACOS(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/add.md b/docs/reference/esql/functions/kibana/docs/add.md deleted file mode 100644 index 3f99bd4c77551..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/add.md +++ /dev/null @@ -1,7 +0,0 @@ - - -### ADD -Add two numbers together. If either field is <> then the result is `null`. - diff --git a/docs/reference/esql/functions/kibana/docs/asin.md b/docs/reference/esql/functions/kibana/docs/asin.md deleted file mode 100644 index b26eee366351f..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/asin.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### ASIN -Returns the arcsine of the input -numeric expression as an angle, expressed in radians. - -``` -ROW a=.9 -| EVAL asin=ASIN(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/atan.md b/docs/reference/esql/functions/kibana/docs/atan.md deleted file mode 100644 index 9be6e2dbefd11..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/atan.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### ATAN -Returns the arctangent of the input -numeric expression as an angle, expressed in radians. - -``` -ROW a=12.9 -| EVAL atan=ATAN(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/atan2.md b/docs/reference/esql/functions/kibana/docs/atan2.md deleted file mode 100644 index e3129264d6999..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/atan2.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### ATAN2 -The angle between the positive x-axis and the ray from the -origin to the point (x , y) in the Cartesian plane, expressed in radians. - -``` -ROW y=12.9, x=.6 -| EVAL atan2=ATAN2(y, x) -``` diff --git a/docs/reference/esql/functions/kibana/docs/avg.md b/docs/reference/esql/functions/kibana/docs/avg.md deleted file mode 100644 index 54006a0556175..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/avg.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### AVG -The average of a numeric field. - -``` -FROM employees -| STATS AVG(height) -``` diff --git a/docs/reference/esql/functions/kibana/docs/bit_length.md b/docs/reference/esql/functions/kibana/docs/bit_length.md deleted file mode 100644 index b1d8e24c4de76..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/bit_length.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### BIT_LENGTH -Returns the bit length of a string. - -``` -FROM airports -| WHERE country == "India" -| KEEP city -| EVAL fn_length = LENGTH(city), fn_bit_length = BIT_LENGTH(city) -``` -Note: All strings are in UTF-8, so a single character can use multiple bytes. diff --git a/docs/reference/esql/functions/kibana/docs/bucket.md b/docs/reference/esql/functions/kibana/docs/bucket.md deleted file mode 100644 index 882e5596f8dac..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/bucket.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### BUCKET -Creates groups of values - buckets - out of a datetime or numeric input. -The size of the buckets can either be provided directly, or chosen based on a recommended count and values range. - -``` -FROM employees -| WHERE hire_date >= "1985-01-01T00:00:00Z" AND hire_date < "1986-01-01T00:00:00Z" -| STATS hire_date = MV_SORT(VALUES(hire_date)) BY month = BUCKET(hire_date, 20, "1985-01-01T00:00:00Z", "1986-01-01T00:00:00Z") -| SORT hire_date -``` diff --git a/docs/reference/esql/functions/kibana/docs/byte_length.md b/docs/reference/esql/functions/kibana/docs/byte_length.md deleted file mode 100644 index 9cd4f87c9883b..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/byte_length.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### BYTE_LENGTH -Returns the byte length of a string. - -``` -FROM airports -| WHERE country == "India" -| KEEP city -| EVAL fn_length = LENGTH(city), fn_byte_length = BYTE_LENGTH(city) -``` -Note: All strings are in UTF-8, so a single character can use multiple bytes. diff --git a/docs/reference/esql/functions/kibana/docs/case.md b/docs/reference/esql/functions/kibana/docs/case.md deleted file mode 100644 index 8bb31ee972759..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/case.md +++ /dev/null @@ -1,20 +0,0 @@ - - -### CASE -Accepts pairs of conditions and values. The function returns the value that -belongs to the first condition that evaluates to `true`. - -If the number of arguments is odd, the last argument is the default value which -is returned when no condition matches. If the number of arguments is even, and -no condition matches, the function returns `null`. - -``` -FROM employees -| EVAL type = CASE( - languages <= 1, "monolingual", - languages <= 2, "bilingual", - "polyglot") -| KEEP emp_no, languages, type -``` diff --git a/docs/reference/esql/functions/kibana/docs/categorize.md b/docs/reference/esql/functions/kibana/docs/categorize.md deleted file mode 100644 index 80c04b79084e9..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/categorize.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### CATEGORIZE -Groups text messages into categories of similarly formatted text values. - -``` -FROM sample_data -| STATS count=COUNT() BY category=CATEGORIZE(message) -``` diff --git a/docs/reference/esql/functions/kibana/docs/cbrt.md b/docs/reference/esql/functions/kibana/docs/cbrt.md deleted file mode 100644 index 50cdad02818e8..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/cbrt.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### CBRT -Returns the cube root of a number. The input can be any numeric value, the return value is always a double. -Cube roots of infinities are null. - -``` -ROW d = 1000.0 -| EVAL c = cbrt(d) -``` diff --git a/docs/reference/esql/functions/kibana/docs/ceil.md b/docs/reference/esql/functions/kibana/docs/ceil.md deleted file mode 100644 index 7c696cc46bdd1..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/ceil.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### CEIL -Round a number up to the nearest integer. - -``` -ROW a=1.8 -| EVAL a=CEIL(a) -``` -Note: This is a noop for `long` (including unsigned) and `integer`. For `double` this picks the closest `double` value to the integer similar to Math.ceil. diff --git a/docs/reference/esql/functions/kibana/docs/cidr_match.md b/docs/reference/esql/functions/kibana/docs/cidr_match.md deleted file mode 100644 index f641fc5cba5b6..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/cidr_match.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### CIDR_MATCH -Returns true if the provided IP is contained in one of the provided CIDR blocks. - -``` -FROM hosts -| WHERE CIDR_MATCH(ip1, "127.0.0.2/32", "127.0.0.3/32") -| KEEP card, host, ip0, ip1 -``` diff --git a/docs/reference/esql/functions/kibana/docs/coalesce.md b/docs/reference/esql/functions/kibana/docs/coalesce.md deleted file mode 100644 index 89cca3f3a286a..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/coalesce.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### COALESCE -Returns the first of its arguments that is not null. If all arguments are null, it returns `null`. - -``` -ROW a=null, b="b" -| EVAL COALESCE(a, b) -``` diff --git a/docs/reference/esql/functions/kibana/docs/concat.md b/docs/reference/esql/functions/kibana/docs/concat.md deleted file mode 100644 index 3dcfb62495a15..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/concat.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### CONCAT -Concatenates two or more strings. - -``` -FROM employees -| KEEP first_name, last_name -| EVAL fullname = CONCAT(first_name, " ", last_name) -``` diff --git a/docs/reference/esql/functions/kibana/docs/cos.md b/docs/reference/esql/functions/kibana/docs/cos.md deleted file mode 100644 index c942ef8e1a49c..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/cos.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### COS -Returns the cosine of an angle. - -``` -ROW a=1.8 -| EVAL cos=COS(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/cosh.md b/docs/reference/esql/functions/kibana/docs/cosh.md deleted file mode 100644 index 0338429521781..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/cosh.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### COSH -Returns the hyperbolic cosine of a number. - -``` -ROW a=1.8 -| EVAL cosh=COSH(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/count.md b/docs/reference/esql/functions/kibana/docs/count.md deleted file mode 100644 index dc9c356a847ed..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/count.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### COUNT -Returns the total number (count) of input values. - -``` -FROM employees -| STATS COUNT(height) -``` diff --git a/docs/reference/esql/functions/kibana/docs/count_distinct.md b/docs/reference/esql/functions/kibana/docs/count_distinct.md deleted file mode 100644 index a6b451bf9d38d..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/count_distinct.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### COUNT_DISTINCT -Returns the approximate number of distinct values. - -``` -FROM hosts -| STATS COUNT_DISTINCT(ip0), COUNT_DISTINCT(ip1) -``` diff --git a/docs/reference/esql/functions/kibana/docs/date_diff.md b/docs/reference/esql/functions/kibana/docs/date_diff.md deleted file mode 100644 index 034763ca2206e..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/date_diff.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### DATE_DIFF -Subtracts the `startTimestamp` from the `endTimestamp` and returns the difference in multiples of `unit`. -If `startTimestamp` is later than the `endTimestamp`, negative values are returned. - -``` -ROW date1 = TO_DATETIME("2023-12-02T11:00:00.000Z"), date2 = TO_DATETIME("2023-12-02T11:00:00.001Z") -| EVAL dd_ms = DATE_DIFF("microseconds", date1, date2) -``` diff --git a/docs/reference/esql/functions/kibana/docs/date_extract.md b/docs/reference/esql/functions/kibana/docs/date_extract.md deleted file mode 100644 index bb6773a2f55d0..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/date_extract.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### DATE_EXTRACT -Extracts parts of a date, like year, month, day, hour. - -``` -ROW date = DATE_PARSE("yyyy-MM-dd", "2022-05-06") -| EVAL year = DATE_EXTRACT("year", date) -``` diff --git a/docs/reference/esql/functions/kibana/docs/date_format.md b/docs/reference/esql/functions/kibana/docs/date_format.md deleted file mode 100644 index 7c75f8eb566da..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/date_format.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### DATE_FORMAT -Returns a string representation of a date, in the provided format. - -``` -FROM employees -| KEEP first_name, last_name, hire_date -| EVAL hired = DATE_FORMAT("yyyy-MM-dd", hire_date) -``` diff --git a/docs/reference/esql/functions/kibana/docs/date_parse.md b/docs/reference/esql/functions/kibana/docs/date_parse.md deleted file mode 100644 index c804767e8d756..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/date_parse.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### DATE_PARSE -Returns a date by parsing the second argument using the format specified in the first argument. - -``` -ROW date_string = "2022-05-06" -| EVAL date = DATE_PARSE("yyyy-MM-dd", date_string) -``` diff --git a/docs/reference/esql/functions/kibana/docs/date_trunc.md b/docs/reference/esql/functions/kibana/docs/date_trunc.md deleted file mode 100644 index 6aa81ebbac3c3..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/date_trunc.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### DATE_TRUNC -Rounds down a date to the closest interval. - -``` -FROM employees -| KEEP first_name, last_name, hire_date -| EVAL year_hired = DATE_TRUNC(1 year, hire_date) -``` diff --git a/docs/reference/esql/functions/kibana/docs/div.md b/docs/reference/esql/functions/kibana/docs/div.md deleted file mode 100644 index a8b7b4e58f376..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/div.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### DIV -Divide one number by another. If either field is <> then the result is `null`. - -Note: Division of two integer types will yield an integer result, rounding towards 0. If you need floating point division, <> one of the arguments to a `DOUBLE`. diff --git a/docs/reference/esql/functions/kibana/docs/e.md b/docs/reference/esql/functions/kibana/docs/e.md deleted file mode 100644 index 7700101b9229e..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/e.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### E -Returns Euler's number. - -``` -ROW E() -``` diff --git a/docs/reference/esql/functions/kibana/docs/ends_with.md b/docs/reference/esql/functions/kibana/docs/ends_with.md deleted file mode 100644 index 51e0ad1faa5ab..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/ends_with.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### ENDS_WITH -Returns a boolean that indicates whether a keyword string ends with another string. - -``` -FROM employees -| KEEP last_name -| EVAL ln_E = ENDS_WITH(last_name, "d") -``` diff --git a/docs/reference/esql/functions/kibana/docs/equals.md b/docs/reference/esql/functions/kibana/docs/equals.md deleted file mode 100644 index b8fcb72c2ccd5..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/equals.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### EQUALS -Check if two fields are equal. If either field is <> then the result is `null`. - -Note: This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>. diff --git a/docs/reference/esql/functions/kibana/docs/exp.md b/docs/reference/esql/functions/kibana/docs/exp.md deleted file mode 100644 index 0eb6bef5f4247..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/exp.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### EXP -Returns the value of e raised to the power of the given number. - -``` -ROW d = 5.0 -| EVAL s = EXP(d) -``` diff --git a/docs/reference/esql/functions/kibana/docs/floor.md b/docs/reference/esql/functions/kibana/docs/floor.md deleted file mode 100644 index 1f94e0eb74eb6..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/floor.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### FLOOR -Round a number down to the nearest integer. - -``` -ROW a=1.8 -| EVAL a=FLOOR(a) -``` -Note: This is a noop for `long` (including unsigned) and `integer`. -For `double` this picks the closest `double` value to the integer -similar to Math.floor. diff --git a/docs/reference/esql/functions/kibana/docs/from_base64.md b/docs/reference/esql/functions/kibana/docs/from_base64.md deleted file mode 100644 index 3b4a88f77c73a..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/from_base64.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### FROM_BASE64 -Decode a base64 string. - -``` -row a = "ZWxhc3RpYw==" -| eval d = from_base64(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/greater_than.md b/docs/reference/esql/functions/kibana/docs/greater_than.md deleted file mode 100644 index 67f99eda3aed7..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/greater_than.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### GREATER_THAN -Check if one field is greater than another. If either field is <> then the result is `null`. - -Note: This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>. diff --git a/docs/reference/esql/functions/kibana/docs/greater_than_or_equal.md b/docs/reference/esql/functions/kibana/docs/greater_than_or_equal.md deleted file mode 100644 index 73d3ac6371b07..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/greater_than_or_equal.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### GREATER_THAN_OR_EQUAL -Check if one field is greater than or equal to another. If either field is <> then the result is `null`. - -Note: This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>. diff --git a/docs/reference/esql/functions/kibana/docs/greatest.md b/docs/reference/esql/functions/kibana/docs/greatest.md deleted file mode 100644 index 4b3b4027381f8..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/greatest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### GREATEST -Returns the maximum value from multiple columns. This is similar to <> -except it is intended to run on multiple columns at once. - -``` -ROW a = 10, b = 20 -| EVAL g = GREATEST(a, b) -``` -Note: When run on `keyword` or `text` fields, this returns the last string in alphabetical order. When run on `boolean` columns this will return `true` if any values are `true`. diff --git a/docs/reference/esql/functions/kibana/docs/hash.md b/docs/reference/esql/functions/kibana/docs/hash.md deleted file mode 100644 index 4e937778ba67a..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/hash.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### HASH -Computes the hash of the input using various algorithms such as MD5, SHA, SHA-224, SHA-256, SHA-384, SHA-512. - -``` -FROM sample_data -| WHERE message != "Connection error" -| EVAL md5 = hash("md5", message), sha256 = hash("sha256", message) -| KEEP message, md5, sha256; -``` diff --git a/docs/reference/esql/functions/kibana/docs/hypot.md b/docs/reference/esql/functions/kibana/docs/hypot.md deleted file mode 100644 index f0cbea6b88e55..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/hypot.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### HYPOT -Returns the hypotenuse of two numbers. The input can be any numeric values, the return value is always a double. -Hypotenuses of infinities are null. - -``` -ROW a = 3.0, b = 4.0 -| EVAL c = HYPOT(a, b) -``` diff --git a/docs/reference/esql/functions/kibana/docs/in.md b/docs/reference/esql/functions/kibana/docs/in.md deleted file mode 100644 index e096146374f38..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/in.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### IN -The `IN` operator allows testing whether a field or expression equals an element in a list of literals, fields or expressions. - -``` -ROW a = 1, b = 4, c = 3 -| WHERE c-a IN (3, b / 2, a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/ip_prefix.md b/docs/reference/esql/functions/kibana/docs/ip_prefix.md deleted file mode 100644 index 5c0009528bb68..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/ip_prefix.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### IP_PREFIX -Truncates an IP to a given prefix length. - -``` -row ip4 = to_ip("1.2.3.4"), ip6 = to_ip("fe80::cae2:65ff:fece:feb9") -| eval ip4_prefix = ip_prefix(ip4, 24, 0), ip6_prefix = ip_prefix(ip6, 0, 112); -``` diff --git a/docs/reference/esql/functions/kibana/docs/kql.md b/docs/reference/esql/functions/kibana/docs/kql.md deleted file mode 100644 index 14c914d57af91..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/kql.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### KQL -Performs a KQL query. Returns true if the provided KQL query string matches the row. - -``` -FROM books -| WHERE KQL("author: Faulkner") -| KEEP book_no, author -| SORT book_no -| LIMIT 5 -``` diff --git a/docs/reference/esql/functions/kibana/docs/least.md b/docs/reference/esql/functions/kibana/docs/least.md deleted file mode 100644 index 7bbbcf79bc374..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/least.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### LEAST -Returns the minimum value from multiple columns. This is similar to <> except it is intended to run on multiple columns at once. - -``` -ROW a = 10, b = 20 -| EVAL l = LEAST(a, b) -``` diff --git a/docs/reference/esql/functions/kibana/docs/left.md b/docs/reference/esql/functions/kibana/docs/left.md deleted file mode 100644 index 73b79f7976512..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/left.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### LEFT -Returns the substring that extracts 'length' chars from 'string' starting from the left. - -``` -FROM employees -| KEEP last_name -| EVAL left = LEFT(last_name, 3) -| SORT last_name ASC -| LIMIT 5 -``` diff --git a/docs/reference/esql/functions/kibana/docs/length.md b/docs/reference/esql/functions/kibana/docs/length.md deleted file mode 100644 index aed76ee14cedb..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/length.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### LENGTH -Returns the character length of a string. - -``` -FROM airports -| WHERE country == "India" -| KEEP city -| EVAL fn_length = LENGTH(city) -``` -Note: All strings are in UTF-8, so a single character can use multiple bytes. diff --git a/docs/reference/esql/functions/kibana/docs/less_than.md b/docs/reference/esql/functions/kibana/docs/less_than.md deleted file mode 100644 index 0d171d06c68d3..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/less_than.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### LESS_THAN -Check if one field is less than another. If either field is <> then the result is `null`. - -Note: This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>. diff --git a/docs/reference/esql/functions/kibana/docs/less_than_or_equal.md b/docs/reference/esql/functions/kibana/docs/less_than_or_equal.md deleted file mode 100644 index acb92288c2c46..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/less_than_or_equal.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### LESS_THAN_OR_EQUAL -Check if one field is less than or equal to another. If either field is <> then the result is `null`. - -Note: This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>. diff --git a/docs/reference/esql/functions/kibana/docs/like.md b/docs/reference/esql/functions/kibana/docs/like.md deleted file mode 100644 index ea2ac11b6f4b9..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/like.md +++ /dev/null @@ -1,20 +0,0 @@ - - -### LIKE -Use `LIKE` to filter data based on string patterns using wildcards. `LIKE` -usually acts on a field placed on the left-hand side of the operator, but it can -also act on a constant (literal) expression. The right-hand side of the operator -represents the pattern. - -The following wildcard characters are supported: - -* `*` matches zero or more characters. -* `?` matches one character. - -``` -FROM employees -| WHERE first_name LIKE """?b*""" -| KEEP first_name, last_name -``` diff --git a/docs/reference/esql/functions/kibana/docs/locate.md b/docs/reference/esql/functions/kibana/docs/locate.md deleted file mode 100644 index 412832e9b1587..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/locate.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### LOCATE -Returns an integer that indicates the position of a keyword substring within another string. -Returns `0` if the substring cannot be found. -Note that string positions start from `1`. - -``` -row a = "hello" -| eval a_ll = locate(a, "ll") -``` diff --git a/docs/reference/esql/functions/kibana/docs/log.md b/docs/reference/esql/functions/kibana/docs/log.md deleted file mode 100644 index 7ac136d31f720..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/log.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### LOG -Returns the logarithm of a value to a base. The input can be any numeric value, the return value is always a double. - -Logs of zero, negative numbers, and base of one return `null` as well as a warning. - -``` -ROW base = 2.0, value = 8.0 -| EVAL s = LOG(base, value) -``` diff --git a/docs/reference/esql/functions/kibana/docs/log10.md b/docs/reference/esql/functions/kibana/docs/log10.md deleted file mode 100644 index 23ec30643e51e..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/log10.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### LOG10 -Returns the logarithm of a value to base 10. The input can be any numeric value, the return value is always a double. - -Logs of 0 and negative numbers return `null` as well as a warning. - -``` -ROW d = 1000.0 -| EVAL s = LOG10(d) -``` diff --git a/docs/reference/esql/functions/kibana/docs/ltrim.md b/docs/reference/esql/functions/kibana/docs/ltrim.md deleted file mode 100644 index 11617f9ee3073..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/ltrim.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### LTRIM -Removes leading whitespaces from a string. - -``` -ROW message = " some text ", color = " red " -| EVAL message = LTRIM(message) -| EVAL color = LTRIM(color) -| EVAL message = CONCAT("'", message, "'") -| EVAL color = CONCAT("'", color, "'") -``` diff --git a/docs/reference/esql/functions/kibana/docs/match.md b/docs/reference/esql/functions/kibana/docs/match.md deleted file mode 100644 index 72132533ea82d..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/match.md +++ /dev/null @@ -1,25 +0,0 @@ - - -### MATCH -Use `MATCH` to perform a <> on the specified field. -Using `MATCH` is equivalent to using the `match` query in the Elasticsearch Query DSL. - -Match can be used on fields from the text family like <> and <>, -as well as other field types like keyword, boolean, dates, and numeric types. - -Match can use <> to specify additional options for the match query. -All <> are supported. - -For a simplified syntax, you can use the <> `:` operator instead of `MATCH`. - -`MATCH` returns true if the provided query matches the row. - -``` -FROM books -| WHERE MATCH(author, "Faulkner") -| KEEP book_no, author -| SORT book_no -| LIMIT 5 -``` diff --git a/docs/reference/esql/functions/kibana/docs/match_operator.md b/docs/reference/esql/functions/kibana/docs/match_operator.md deleted file mode 100644 index 59662b36b804f..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/match_operator.md +++ /dev/null @@ -1,22 +0,0 @@ - - -### MATCH_OPERATOR -Use the match operator (`:`) to perform a <> on the specified field. -Using `:` is equivalent to using the `match` query in the Elasticsearch Query DSL. - -The match operator is equivalent to the <>. - -For using the function syntax, or adding <>, you can use the -<>. - -`:` returns true if the provided query matches the row. - -``` -FROM books -| WHERE MATCH(author, "Faulkner") -| KEEP book_no, author -| SORT book_no -| LIMIT 5 -``` diff --git a/docs/reference/esql/functions/kibana/docs/max.md b/docs/reference/esql/functions/kibana/docs/max.md deleted file mode 100644 index 80e88885e7f34..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/max.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MAX -The maximum value of a field. - -``` -FROM employees -| STATS MAX(languages) -``` diff --git a/docs/reference/esql/functions/kibana/docs/md5.md b/docs/reference/esql/functions/kibana/docs/md5.md deleted file mode 100644 index aacb8a3960165..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/md5.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### MD5 -Computes the MD5 hash of the input. - -``` -FROM sample_data -| WHERE message != "Connection error" -| EVAL md5 = md5(message) -| KEEP message, md5; -``` diff --git a/docs/reference/esql/functions/kibana/docs/median.md b/docs/reference/esql/functions/kibana/docs/median.md deleted file mode 100644 index 7a4370b4d2551..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/median.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### MEDIAN -The value that is greater than half of all values and less than half of all values, also known as the 50% <>. - -``` -FROM employees -| STATS MEDIAN(salary), PERCENTILE(salary, 50) -``` -Note: Like <>, `MEDIAN` is <>. diff --git a/docs/reference/esql/functions/kibana/docs/median_absolute_deviation.md b/docs/reference/esql/functions/kibana/docs/median_absolute_deviation.md deleted file mode 100644 index 8db113deb2c49..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/median_absolute_deviation.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### MEDIAN_ABSOLUTE_DEVIATION -Returns the median absolute deviation, a measure of variability. It is a robust statistic, meaning that it is useful for describing data that may have outliers, or may not be normally distributed. For such data it can be more descriptive than standard deviation. - -It is calculated as the median of each data point's deviation from the median of the entire sample. That is, for a random variable `X`, the median absolute deviation is `median(|median(X) - X|)`. - -``` -FROM employees -| STATS MEDIAN(salary), MEDIAN_ABSOLUTE_DEVIATION(salary) -``` -Note: Like <>, `MEDIAN_ABSOLUTE_DEVIATION` is <>. diff --git a/docs/reference/esql/functions/kibana/docs/min.md b/docs/reference/esql/functions/kibana/docs/min.md deleted file mode 100644 index 38d13b97fd344..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/min.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MIN -The minimum value of a field. - -``` -FROM employees -| STATS MIN(languages) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mod.md b/docs/reference/esql/functions/kibana/docs/mod.md deleted file mode 100644 index e6b3c92406072..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mod.md +++ /dev/null @@ -1,7 +0,0 @@ - - -### MOD -Divide one number by another and return the remainder. If either field is <> then the result is `null`. - diff --git a/docs/reference/esql/functions/kibana/docs/mul.md b/docs/reference/esql/functions/kibana/docs/mul.md deleted file mode 100644 index 3f24f3b1a67bb..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mul.md +++ /dev/null @@ -1,7 +0,0 @@ - - -### MUL -Multiply two numbers together. If either field is <> then the result is `null`. - diff --git a/docs/reference/esql/functions/kibana/docs/mv_append.md b/docs/reference/esql/functions/kibana/docs/mv_append.md deleted file mode 100644 index 36b285be1877c..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_append.md +++ /dev/null @@ -1,7 +0,0 @@ - - -### MV_APPEND -Concatenates values of two multi-value fields. - diff --git a/docs/reference/esql/functions/kibana/docs/mv_avg.md b/docs/reference/esql/functions/kibana/docs/mv_avg.md deleted file mode 100644 index c3d7e5423f724..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_avg.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_AVG -Converts a multivalued field into a single valued field containing the average of all of the values. - -``` -ROW a=[3, 5, 1, 6] -| EVAL avg_a = MV_AVG(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_concat.md b/docs/reference/esql/functions/kibana/docs/mv_concat.md deleted file mode 100644 index b6abffbb39a35..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_concat.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_CONCAT -Converts a multivalued string expression into a single valued column containing the concatenation of all values separated by a delimiter. - -``` -ROW a=["foo", "zoo", "bar"] -| EVAL j = MV_CONCAT(a, ", ") -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_count.md b/docs/reference/esql/functions/kibana/docs/mv_count.md deleted file mode 100644 index a4c4880c99d17..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_count.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_COUNT -Converts a multivalued expression into a single valued column containing a count of the number of values. - -``` -ROW a=["foo", "zoo", "bar"] -| EVAL count_a = MV_COUNT(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_dedupe.md b/docs/reference/esql/functions/kibana/docs/mv_dedupe.md deleted file mode 100644 index 28884841d5524..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_dedupe.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### MV_DEDUPE -Remove duplicate values from a multivalued field. - -``` -ROW a=["foo", "foo", "bar", "foo"] -| EVAL dedupe_a = MV_DEDUPE(a) -``` -Note: `MV_DEDUPE` may, but won't always, sort the values in the column. diff --git a/docs/reference/esql/functions/kibana/docs/mv_first.md b/docs/reference/esql/functions/kibana/docs/mv_first.md deleted file mode 100644 index c50ed7d764020..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_first.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### MV_FIRST -Converts a multivalued expression into a single valued column containing the -first value. This is most useful when reading from a function that emits -multivalued columns in a known order like <>. - -``` -ROW a="foo;bar;baz" -| EVAL first_a = MV_FIRST(SPLIT(a, ";")) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_last.md b/docs/reference/esql/functions/kibana/docs/mv_last.md deleted file mode 100644 index eeefd929c1359..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_last.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### MV_LAST -Converts a multivalue expression into a single valued column containing the last -value. This is most useful when reading from a function that emits multivalued -columns in a known order like <>. - -``` -ROW a="foo;bar;baz" -| EVAL last_a = MV_LAST(SPLIT(a, ";")) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_max.md b/docs/reference/esql/functions/kibana/docs/mv_max.md deleted file mode 100644 index 90cf01de43cb6..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_max.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_MAX -Converts a multivalued expression into a single valued column containing the maximum value. - -``` -ROW a=[3, 5, 1] -| EVAL max_a = MV_MAX(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_median.md b/docs/reference/esql/functions/kibana/docs/mv_median.md deleted file mode 100644 index 149e6bbd50c49..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_median.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_MEDIAN -Converts a multivalued field into a single valued field containing the median value. - -``` -ROW a=[3, 5, 1] -| EVAL median_a = MV_MEDIAN(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_median_absolute_deviation.md b/docs/reference/esql/functions/kibana/docs/mv_median_absolute_deviation.md deleted file mode 100644 index 191ce3ce60ae1..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_median_absolute_deviation.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### MV_MEDIAN_ABSOLUTE_DEVIATION -Converts a multivalued field into a single valued field containing the median absolute deviation. - -It is calculated as the median of each data point's deviation from the median of the entire sample. That is, for a random variable `X`, the median absolute deviation is `median(|median(X) - X|)`. - -``` -ROW values = [0, 2, 5, 6] -| EVAL median_absolute_deviation = MV_MEDIAN_ABSOLUTE_DEVIATION(values), median = MV_MEDIAN(values) -``` -Note: If the field has an even number of values, the medians will be calculated as the average of the middle two values. If the value is not a floating point number, the averages are rounded towards 0. diff --git a/docs/reference/esql/functions/kibana/docs/mv_min.md b/docs/reference/esql/functions/kibana/docs/mv_min.md deleted file mode 100644 index e039ffee353b2..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_min.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_MIN -Converts a multivalued expression into a single valued column containing the minimum value. - -``` -ROW a=[2, 1] -| EVAL min_a = MV_MIN(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_percentile.md b/docs/reference/esql/functions/kibana/docs/mv_percentile.md deleted file mode 100644 index 560a0aefa1dc3..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_percentile.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_PERCENTILE -Converts a multivalued field into a single valued field containing the value at which a certain percentage of observed values occur. - -``` -ROW values = [5, 5, 10, 12, 5000] -| EVAL p50 = MV_PERCENTILE(values, 50), median = MV_MEDIAN(values) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_pseries_weighted_sum.md b/docs/reference/esql/functions/kibana/docs/mv_pseries_weighted_sum.md deleted file mode 100644 index fbeb310449b9b..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_pseries_weighted_sum.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### MV_PSERIES_WEIGHTED_SUM -Converts a multivalued expression into a single-valued column by multiplying every element on the input list by its corresponding term in P-Series and computing the sum. - -``` -ROW a = [70.0, 45.0, 21.0, 21.0, 21.0] -| EVAL sum = MV_PSERIES_WEIGHTED_SUM(a, 1.5) -| KEEP sum -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_slice.md b/docs/reference/esql/functions/kibana/docs/mv_slice.md deleted file mode 100644 index bba7a219960ef..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_slice.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### MV_SLICE -Returns a subset of the multivalued field using the start and end index values. -This is most useful when reading from a function that emits multivalued columns -in a known order like <> or <>. - -``` -row a = [1, 2, 2, 3] -| eval a1 = mv_slice(a, 1), a2 = mv_slice(a, 2, 3) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_sort.md b/docs/reference/esql/functions/kibana/docs/mv_sort.md deleted file mode 100644 index 2dee9c63c09c1..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_sort.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_SORT -Sorts a multivalued field in lexicographical order. - -``` -ROW a = [4, 2, -3, 2] -| EVAL sa = mv_sort(a), sd = mv_sort(a, "DESC") -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_sum.md b/docs/reference/esql/functions/kibana/docs/mv_sum.md deleted file mode 100644 index 16285d3c7229b..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_sum.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### MV_SUM -Converts a multivalued field into a single valued field containing the sum of all of the values. - -``` -ROW a=[3, 5, 6] -| EVAL sum_a = MV_SUM(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/mv_zip.md b/docs/reference/esql/functions/kibana/docs/mv_zip.md deleted file mode 100644 index cd814439f86c2..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/mv_zip.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### MV_ZIP -Combines the values from two multivalued fields with a delimiter that joins them together. - -``` -ROW a = ["x", "y", "z"], b = ["1", "2"] -| EVAL c = mv_zip(a, b, "-") -| KEEP a, b, c -``` diff --git a/docs/reference/esql/functions/kibana/docs/neg.md b/docs/reference/esql/functions/kibana/docs/neg.md deleted file mode 100644 index 2d1c65487343f..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/neg.md +++ /dev/null @@ -1,7 +0,0 @@ - - -### NEG -Returns the negation of the argument. - diff --git a/docs/reference/esql/functions/kibana/docs/not_equals.md b/docs/reference/esql/functions/kibana/docs/not_equals.md deleted file mode 100644 index cff2130e766ed..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/not_equals.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### NOT_EQUALS -Check if two fields are unequal. If either field is <> then the result is `null`. - -Note: This is pushed to the underlying search index if one side of the comparison is constant and the other side is a field in the index that has both an <> and <>. diff --git a/docs/reference/esql/functions/kibana/docs/now.md b/docs/reference/esql/functions/kibana/docs/now.md deleted file mode 100644 index 5143dc843ebd8..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/now.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### NOW -Returns current date and time. - -``` -ROW current_date = NOW() -``` diff --git a/docs/reference/esql/functions/kibana/docs/percentile.md b/docs/reference/esql/functions/kibana/docs/percentile.md deleted file mode 100644 index dd907ef817186..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/percentile.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### PERCENTILE -Returns the value at which a certain percentage of observed values occur. For example, the 95th percentile is the value which is greater than 95% of the observed values and the 50th percentile is the `MEDIAN`. - -``` -FROM employees -| STATS p0 = PERCENTILE(salary, 0) - , p50 = PERCENTILE(salary, 50) - , p99 = PERCENTILE(salary, 99) -``` diff --git a/docs/reference/esql/functions/kibana/docs/pi.md b/docs/reference/esql/functions/kibana/docs/pi.md deleted file mode 100644 index 676d11cea3ea4..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/pi.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### PI -Returns Pi, the ratio of a circle's circumference to its diameter. - -``` -ROW PI() -``` diff --git a/docs/reference/esql/functions/kibana/docs/pow.md b/docs/reference/esql/functions/kibana/docs/pow.md deleted file mode 100644 index d214504ce4b03..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/pow.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### POW -Returns the value of `base` raised to the power of `exponent`. - -``` -ROW base = 2.0, exponent = 2 -| EVAL result = POW(base, exponent) -``` -Note: It is still possible to overflow a double result here; in that case, null will be returned. diff --git a/docs/reference/esql/functions/kibana/docs/qstr.md b/docs/reference/esql/functions/kibana/docs/qstr.md deleted file mode 100644 index 374854b805fee..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/qstr.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### QSTR -Performs a <>. Returns true if the provided query string matches the row. - -``` -FROM books -| WHERE QSTR("author: Faulkner") -| KEEP book_no, author -| SORT book_no -| LIMIT 5 -``` diff --git a/docs/reference/esql/functions/kibana/docs/repeat.md b/docs/reference/esql/functions/kibana/docs/repeat.md deleted file mode 100644 index 4949d86a28f46..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/repeat.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### REPEAT -Returns a string constructed by concatenating `string` with itself the specified `number` of times. - -``` -ROW a = "Hello!" -| EVAL triple_a = REPEAT(a, 3) -``` diff --git a/docs/reference/esql/functions/kibana/docs/replace.md b/docs/reference/esql/functions/kibana/docs/replace.md deleted file mode 100644 index 773416520e421..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/replace.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### REPLACE -The function substitutes in the string `str` any match of the regular expression `regex` -with the replacement string `newStr`. - -``` -ROW str = "Hello World" -| EVAL str = REPLACE(str, "World", "Universe") -| KEEP str -``` diff --git a/docs/reference/esql/functions/kibana/docs/reverse.md b/docs/reference/esql/functions/kibana/docs/reverse.md deleted file mode 100644 index cbeade9189d80..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/reverse.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### REVERSE -Returns a new string representing the input string in reverse order. - -``` -ROW message = "Some Text" | EVAL message_reversed = REVERSE(message); -``` diff --git a/docs/reference/esql/functions/kibana/docs/right.md b/docs/reference/esql/functions/kibana/docs/right.md deleted file mode 100644 index 3b09ae311c9fa..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/right.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### RIGHT -Return the substring that extracts 'length' chars from 'str' starting from the right. - -``` -FROM employees -| KEEP last_name -| EVAL right = RIGHT(last_name, 3) -| SORT last_name ASC -| LIMIT 5 -``` diff --git a/docs/reference/esql/functions/kibana/docs/rlike.md b/docs/reference/esql/functions/kibana/docs/rlike.md deleted file mode 100644 index 95b57799ffe29..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/rlike.md +++ /dev/null @@ -1,15 +0,0 @@ - - -### RLIKE -Use `RLIKE` to filter data based on string patterns using using -<>. `RLIKE` usually acts on a field placed on -the left-hand side of the operator, but it can also act on a constant (literal) -expression. The right-hand side of the operator represents the pattern. - -``` -FROM employees -| WHERE first_name RLIKE """.leja.*""" -| KEEP first_name, last_name -``` diff --git a/docs/reference/esql/functions/kibana/docs/round.md b/docs/reference/esql/functions/kibana/docs/round.md deleted file mode 100644 index 97fa33a8845bd..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/round.md +++ /dev/null @@ -1,15 +0,0 @@ - - -### ROUND -Rounds a number to the specified number of decimal places. -Defaults to 0, which returns the nearest integer. If the -precision is a negative number, rounds to the number of digits left -of the decimal point. - -``` -FROM employees -| KEEP first_name, last_name, height -| EVAL height_ft = ROUND(height * 3.281, 1) -``` diff --git a/docs/reference/esql/functions/kibana/docs/rtrim.md b/docs/reference/esql/functions/kibana/docs/rtrim.md deleted file mode 100644 index db65d8c2ad85b..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/rtrim.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### RTRIM -Removes trailing whitespaces from a string. - -``` -ROW message = " some text ", color = " red " -| EVAL message = RTRIM(message) -| EVAL color = RTRIM(color) -| EVAL message = CONCAT("'", message, "'") -| EVAL color = CONCAT("'", color, "'") -``` diff --git a/docs/reference/esql/functions/kibana/docs/sha1.md b/docs/reference/esql/functions/kibana/docs/sha1.md deleted file mode 100644 index a940aa133f06e..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/sha1.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### SHA1 -Computes the SHA1 hash of the input. - -``` -FROM sample_data -| WHERE message != "Connection error" -| EVAL sha1 = sha1(message) -| KEEP message, sha1; -``` diff --git a/docs/reference/esql/functions/kibana/docs/sha256.md b/docs/reference/esql/functions/kibana/docs/sha256.md deleted file mode 100644 index fbe576c7c20d6..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/sha256.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### SHA256 -Computes the SHA256 hash of the input. - -``` -FROM sample_data -| WHERE message != "Connection error" -| EVAL sha256 = sha256(message) -| KEEP message, sha256; -``` diff --git a/docs/reference/esql/functions/kibana/docs/signum.md b/docs/reference/esql/functions/kibana/docs/signum.md deleted file mode 100644 index f2e66b84c69c8..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/signum.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### SIGNUM -Returns the sign of the given number. -It returns `-1` for negative numbers, `0` for `0` and `1` for positive numbers. - -``` -ROW d = 100.0 -| EVAL s = SIGNUM(d) -``` diff --git a/docs/reference/esql/functions/kibana/docs/sin.md b/docs/reference/esql/functions/kibana/docs/sin.md deleted file mode 100644 index d1128350d12fb..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/sin.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### SIN -Returns the sine of an angle. - -``` -ROW a=1.8 -| EVAL sin=SIN(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/sinh.md b/docs/reference/esql/functions/kibana/docs/sinh.md deleted file mode 100644 index 249c9bb0906c3..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/sinh.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### SINH -Returns the hyperbolic sine of a number. - -``` -ROW a=1.8 -| EVAL sinh=SINH(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/space.md b/docs/reference/esql/functions/kibana/docs/space.md deleted file mode 100644 index 3112bf953dd65..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/space.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### SPACE -Returns a string made of `number` spaces. - -``` -ROW message = CONCAT("Hello", SPACE(1), "World!"); -``` diff --git a/docs/reference/esql/functions/kibana/docs/split.md b/docs/reference/esql/functions/kibana/docs/split.md deleted file mode 100644 index 29c728a194487..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/split.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### SPLIT -Split a single valued string into multiple strings. - -``` -ROW words="foo;bar;baz;qux;quux;corge" -| EVAL word = SPLIT(words, ";") -``` diff --git a/docs/reference/esql/functions/kibana/docs/sqrt.md b/docs/reference/esql/functions/kibana/docs/sqrt.md deleted file mode 100644 index fccec95a4884d..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/sqrt.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### SQRT -Returns the square root of a number. The input can be any numeric value, the return value is always a double. -Square roots of negative numbers and infinities are null. - -``` -ROW d = 100.0 -| EVAL s = SQRT(d) -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_centroid_agg.md b/docs/reference/esql/functions/kibana/docs/st_centroid_agg.md deleted file mode 100644 index 306a32a309a64..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_centroid_agg.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### ST_CENTROID_AGG -Calculate the spatial centroid over a field with spatial point geometry type. - -``` -FROM airports -| STATS centroid=ST_CENTROID_AGG(location) -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_contains.md b/docs/reference/esql/functions/kibana/docs/st_contains.md deleted file mode 100644 index 99f3a19f9df41..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_contains.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### ST_CONTAINS -Returns whether the first geometry contains the second geometry. -This is the inverse of the <> function. - -``` -FROM airport_city_boundaries -| WHERE ST_CONTAINS(city_boundary, TO_GEOSHAPE("POLYGON((109.35 18.3, 109.45 18.3, 109.45 18.4, 109.35 18.4, 109.35 18.3))")) -| KEEP abbrev, airport, region, city, city_location -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_disjoint.md b/docs/reference/esql/functions/kibana/docs/st_disjoint.md deleted file mode 100644 index 4b42954efa5c1..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_disjoint.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### ST_DISJOINT -Returns whether the two geometries or geometry columns are disjoint. -This is the inverse of the <> function. -In mathematical terms: ST_Disjoint(A, B) ⇔ A ⋂ B = ∅ - -``` -FROM airport_city_boundaries -| WHERE ST_DISJOINT(city_boundary, TO_GEOSHAPE("POLYGON((-10 -60, 120 -60, 120 60, -10 60, -10 -60))")) -| KEEP abbrev, airport, region, city, city_location -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_distance.md b/docs/reference/esql/functions/kibana/docs/st_distance.md deleted file mode 100644 index 7ea2d5a255357..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_distance.md +++ /dev/null @@ -1,15 +0,0 @@ - - -### ST_DISTANCE -Computes the distance between two points. -For cartesian geometries, this is the pythagorean distance in the same units as the original coordinates. -For geographic geometries, this is the circular distance along the great circle in meters. - -``` -FROM airports -| WHERE abbrev == "CPH" -| EVAL distance = ST_DISTANCE(location, city_location) -| KEEP abbrev, name, location, city_location, distance -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_envelope.md b/docs/reference/esql/functions/kibana/docs/st_envelope.md deleted file mode 100644 index 5f4c3e4809a82..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_envelope.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### ST_ENVELOPE -Determines the minimum bounding box of the supplied geometry. - -``` -FROM airport_city_boundaries -| WHERE abbrev == "CPH" -| EVAL envelope = ST_ENVELOPE(city_boundary) -| KEEP abbrev, airport, envelope -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_extent_agg.md b/docs/reference/esql/functions/kibana/docs/st_extent_agg.md deleted file mode 100644 index a2e307c5b2c55..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_extent_agg.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### ST_EXTENT_AGG -Calculate the spatial extent over a field with geometry type. Returns a bounding box for all values of the field. - -``` -FROM airports -| WHERE country == "India" -| STATS extent = ST_EXTENT_AGG(location) -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_intersects.md b/docs/reference/esql/functions/kibana/docs/st_intersects.md deleted file mode 100644 index b0a58b3ab2357..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_intersects.md +++ /dev/null @@ -1,15 +0,0 @@ - - -### ST_INTERSECTS -Returns true if two geometries intersect. -They intersect if they have any point in common, including their interior points -(points along lines or within polygons). -This is the inverse of the <> function. -In mathematical terms: ST_Intersects(A, B) ⇔ A ⋂ B ≠ ∅ - -``` -FROM airports -| WHERE ST_INTERSECTS(location, TO_GEOSHAPE("POLYGON((42 14, 43 14, 43 15, 42 15, 42 14))")) -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_within.md b/docs/reference/esql/functions/kibana/docs/st_within.md deleted file mode 100644 index 9ef046e5006f6..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_within.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### ST_WITHIN -Returns whether the first geometry is within the second geometry. -This is the inverse of the <> function. - -``` -FROM airport_city_boundaries -| WHERE ST_WITHIN(city_boundary, TO_GEOSHAPE("POLYGON((109.1 18.15, 109.6 18.15, 109.6 18.65, 109.1 18.65, 109.1 18.15))")) -| KEEP abbrev, airport, region, city, city_location -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_x.md b/docs/reference/esql/functions/kibana/docs/st_x.md deleted file mode 100644 index b113f19e1c76c..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_x.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### ST_X -Extracts the `x` coordinate from the supplied point. -If the points is of type `geo_point` this is equivalent to extracting the `longitude` value. - -``` -ROW point = TO_GEOPOINT("POINT(42.97109629958868 14.7552534006536)") -| EVAL x = ST_X(point), y = ST_Y(point) -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_xmax.md b/docs/reference/esql/functions/kibana/docs/st_xmax.md deleted file mode 100644 index bbde89df76fd0..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_xmax.md +++ /dev/null @@ -1,15 +0,0 @@ - - -### ST_XMAX -Extracts the maximum value of the `x` coordinates from the supplied geometry. -If the geometry is of type `geo_point` or `geo_shape` this is equivalent to extracting the maximum `longitude` value. - -``` -FROM airport_city_boundaries -| WHERE abbrev == "CPH" -| EVAL envelope = ST_ENVELOPE(city_boundary) -| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope) -| KEEP abbrev, airport, xmin, xmax, ymin, ymax -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_xmin.md b/docs/reference/esql/functions/kibana/docs/st_xmin.md deleted file mode 100644 index 1a6cee7dcfd62..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_xmin.md +++ /dev/null @@ -1,15 +0,0 @@ - - -### ST_XMIN -Extracts the minimum value of the `x` coordinates from the supplied geometry. -If the geometry is of type `geo_point` or `geo_shape` this is equivalent to extracting the minimum `longitude` value. - -``` -FROM airport_city_boundaries -| WHERE abbrev == "CPH" -| EVAL envelope = ST_ENVELOPE(city_boundary) -| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope) -| KEEP abbrev, airport, xmin, xmax, ymin, ymax -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_y.md b/docs/reference/esql/functions/kibana/docs/st_y.md deleted file mode 100644 index db88c3ada63bb..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_y.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### ST_Y -Extracts the `y` coordinate from the supplied point. -If the points is of type `geo_point` this is equivalent to extracting the `latitude` value. - -``` -ROW point = TO_GEOPOINT("POINT(42.97109629958868 14.7552534006536)") -| EVAL x = ST_X(point), y = ST_Y(point) -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_ymax.md b/docs/reference/esql/functions/kibana/docs/st_ymax.md deleted file mode 100644 index 61c9b6c288ca5..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_ymax.md +++ /dev/null @@ -1,15 +0,0 @@ - - -### ST_YMAX -Extracts the maximum value of the `y` coordinates from the supplied geometry. -If the geometry is of type `geo_point` or `geo_shape` this is equivalent to extracting the maximum `latitude` value. - -``` -FROM airport_city_boundaries -| WHERE abbrev == "CPH" -| EVAL envelope = ST_ENVELOPE(city_boundary) -| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope) -| KEEP abbrev, airport, xmin, xmax, ymin, ymax -``` diff --git a/docs/reference/esql/functions/kibana/docs/st_ymin.md b/docs/reference/esql/functions/kibana/docs/st_ymin.md deleted file mode 100644 index f5817f10f20a5..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/st_ymin.md +++ /dev/null @@ -1,15 +0,0 @@ - - -### ST_YMIN -Extracts the minimum value of the `y` coordinates from the supplied geometry. -If the geometry is of type `geo_point` or `geo_shape` this is equivalent to extracting the minimum `latitude` value. - -``` -FROM airport_city_boundaries -| WHERE abbrev == "CPH" -| EVAL envelope = ST_ENVELOPE(city_boundary) -| EVAL xmin = ST_XMIN(envelope), xmax = ST_XMAX(envelope), ymin = ST_YMIN(envelope), ymax = ST_YMAX(envelope) -| KEEP abbrev, airport, xmin, xmax, ymin, ymax -``` diff --git a/docs/reference/esql/functions/kibana/docs/starts_with.md b/docs/reference/esql/functions/kibana/docs/starts_with.md deleted file mode 100644 index 553c8733c6137..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/starts_with.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### STARTS_WITH -Returns a boolean that indicates whether a keyword string starts with another string. - -``` -FROM employees -| KEEP last_name -| EVAL ln_S = STARTS_WITH(last_name, "B") -``` diff --git a/docs/reference/esql/functions/kibana/docs/std_dev.md b/docs/reference/esql/functions/kibana/docs/std_dev.md deleted file mode 100644 index a6afca7b8f6b3..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/std_dev.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### STD_DEV -The standard deviation of a numeric field. - -``` -FROM employees -| STATS STD_DEV(height) -``` diff --git a/docs/reference/esql/functions/kibana/docs/sub.md b/docs/reference/esql/functions/kibana/docs/sub.md deleted file mode 100644 index 10746ed81cfe3..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/sub.md +++ /dev/null @@ -1,7 +0,0 @@ - - -### SUB -Subtract one number from another. If either field is <> then the result is `null`. - diff --git a/docs/reference/esql/functions/kibana/docs/substring.md b/docs/reference/esql/functions/kibana/docs/substring.md deleted file mode 100644 index 5f2601a279f6f..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/substring.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### SUBSTRING -Returns a substring of a string, specified by a start position and an optional length. - -``` -FROM employees -| KEEP last_name -| EVAL ln_sub = SUBSTRING(last_name, 1, 3) -``` diff --git a/docs/reference/esql/functions/kibana/docs/sum.md b/docs/reference/esql/functions/kibana/docs/sum.md deleted file mode 100644 index eb72ddb0dece1..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/sum.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### SUM -The sum of a numeric expression. - -``` -FROM employees -| STATS SUM(languages) -``` diff --git a/docs/reference/esql/functions/kibana/docs/tan.md b/docs/reference/esql/functions/kibana/docs/tan.md deleted file mode 100644 index 41bd3c814b171..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/tan.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TAN -Returns the tangent of an angle. - -``` -ROW a=1.8 -| EVAL tan=TAN(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/tanh.md b/docs/reference/esql/functions/kibana/docs/tanh.md deleted file mode 100644 index 365add190de82..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/tanh.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TANH -Returns the hyperbolic tangent of a number. - -``` -ROW a=1.8 -| EVAL tanh=TANH(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/tau.md b/docs/reference/esql/functions/kibana/docs/tau.md deleted file mode 100644 index ca0f4474b597e..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/tau.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### TAU -Returns the ratio of a circle's circumference to its radius. - -``` -ROW TAU() -``` diff --git a/docs/reference/esql/functions/kibana/docs/term.md b/docs/reference/esql/functions/kibana/docs/term.md deleted file mode 100644 index ffecd26d737f7..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/term.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### TERM -Performs a Term query on the specified field. Returns true if the provided term matches the row. - -``` -FROM books -| WHERE TERM(author, "gabriel") -| KEEP book_no, title -| LIMIT 3; -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_base64.md b/docs/reference/esql/functions/kibana/docs/to_base64.md deleted file mode 100644 index 2863a69da7b29..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_base64.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TO_BASE64 -Encode a string to a base64 string. - -``` -row a = "elastic" -| eval e = to_base64(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_boolean.md b/docs/reference/esql/functions/kibana/docs/to_boolean.md deleted file mode 100644 index 9cf97100c334e..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_boolean.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### TO_BOOLEAN -Converts an input value to a boolean value. -A string value of *true* will be case-insensitive converted to the Boolean *true*. -For anything else, including the empty string, the function will return *false*. -The numerical value of *0* will be converted to *false*, anything else will be converted to *true*. - -``` -ROW str = ["true", "TRuE", "false", "", "yes", "1"] -| EVAL bool = TO_BOOLEAN(str) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_cartesianpoint.md b/docs/reference/esql/functions/kibana/docs/to_cartesianpoint.md deleted file mode 100644 index 87ec2233614a3..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_cartesianpoint.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### TO_CARTESIANPOINT -Converts an input value to a `cartesian_point` value. -A string will only be successfully converted if it respects WKT Point format. - -``` -ROW wkt = ["POINT(4297.11 -1475.53)", "POINT(7580.93 2272.77)"] -| MV_EXPAND wkt -| EVAL pt = TO_CARTESIANPOINT(wkt) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_cartesianshape.md b/docs/reference/esql/functions/kibana/docs/to_cartesianshape.md deleted file mode 100644 index 7967fc567e9da..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_cartesianshape.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### TO_CARTESIANSHAPE -Converts an input value to a `cartesian_shape` value. -A string will only be successfully converted if it respects WKT format. - -``` -ROW wkt = ["POINT(4297.11 -1475.53)", "POLYGON ((3339584.72 1118889.97, 4452779.63 4865942.27, 2226389.81 4865942.27, 1113194.90 2273030.92, 3339584.72 1118889.97))"] -| MV_EXPAND wkt -| EVAL geom = TO_CARTESIANSHAPE(wkt) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_date_nanos.md b/docs/reference/esql/functions/kibana/docs/to_date_nanos.md deleted file mode 100644 index 1bce8d4fca832..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_date_nanos.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### TO_DATE_NANOS -Converts an input to a nanosecond-resolution date value (aka date_nanos). - -Note: The range for date nanos is 1970-01-01T00:00:00.000000000Z to 2262-04-11T23:47:16.854775807Z, attepting to convertvalues outside of that range will result in null with a warning.. Additionally, integers cannot be converted into date nanos, as the range of integer nanoseconds only covers about 2 seconds after epoch. diff --git a/docs/reference/esql/functions/kibana/docs/to_dateperiod.md b/docs/reference/esql/functions/kibana/docs/to_dateperiod.md deleted file mode 100644 index adbbe75783051..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_dateperiod.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### TO_DATEPERIOD -Converts an input value into a `date_period` value. - -``` -row x = "2024-01-01"::datetime | eval y = x + "3 DAYS"::date_period, z = x - to_dateperiod("3 days"); -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_datetime.md b/docs/reference/esql/functions/kibana/docs/to_datetime.md deleted file mode 100644 index c194dfd17871a..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_datetime.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### TO_DATETIME -Converts an input value to a date value. -A string will only be successfully converted if it's respecting the format `yyyy-MM-dd'T'HH:mm:ss.SSS'Z'`. -To convert dates in other formats, use <>. - -``` -ROW string = ["1953-09-02T00:00:00.000Z", "1964-06-02T00:00:00.000Z", "1964-06-02 00:00:00"] -| EVAL datetime = TO_DATETIME(string) -``` -Note: Note that when converting from nanosecond resolution to millisecond resolution with this function, the nanosecond date is truncated, not rounded. diff --git a/docs/reference/esql/functions/kibana/docs/to_degrees.md b/docs/reference/esql/functions/kibana/docs/to_degrees.md deleted file mode 100644 index 81fbba1dd2b2d..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_degrees.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TO_DEGREES -Converts a number in radians to degrees. - -``` -ROW rad = [1.57, 3.14, 4.71] -| EVAL deg = TO_DEGREES(rad) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_double.md b/docs/reference/esql/functions/kibana/docs/to_double.md deleted file mode 100644 index 4f769bec9b108..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_double.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### TO_DOUBLE -Converts an input value to a double value. If the input parameter is of a date type, -its value will be interpreted as milliseconds since the Unix epoch, -converted to double. Boolean *true* will be converted to double *1.0*, *false* to *0.0*. - -``` -ROW str1 = "5.20128E11", str2 = "foo" -| EVAL dbl = TO_DOUBLE("520128000000"), dbl1 = TO_DOUBLE(str1), dbl2 = TO_DOUBLE(str2) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_geopoint.md b/docs/reference/esql/functions/kibana/docs/to_geopoint.md deleted file mode 100644 index 3301acb214c12..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_geopoint.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### TO_GEOPOINT -Converts an input value to a `geo_point` value. -A string will only be successfully converted if it respects WKT Point format. - -``` -ROW wkt = "POINT(42.97109630194 14.7552534413725)" -| EVAL pt = TO_GEOPOINT(wkt) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_geoshape.md b/docs/reference/esql/functions/kibana/docs/to_geoshape.md deleted file mode 100644 index c39bd9f73b7cb..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_geoshape.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### TO_GEOSHAPE -Converts an input value to a `geo_shape` value. -A string will only be successfully converted if it respects WKT format. - -``` -ROW wkt = "POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))" -| EVAL geom = TO_GEOSHAPE(wkt) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_integer.md b/docs/reference/esql/functions/kibana/docs/to_integer.md deleted file mode 100644 index 238688b88eda7..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_integer.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### TO_INTEGER -Converts an input value to an integer value. -If the input parameter is of a date type, its value will be interpreted as milliseconds -since the Unix epoch, converted to integer. -Boolean *true* will be converted to integer *1*, *false* to *0*. - -``` -ROW long = [5013792, 2147483647, 501379200000] -| EVAL int = TO_INTEGER(long) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_ip.md b/docs/reference/esql/functions/kibana/docs/to_ip.md deleted file mode 100644 index 6811753b781e4..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_ip.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### TO_IP -Converts an input string to an IP value. - -``` -ROW str1 = "1.1.1.1", str2 = "foo" -| EVAL ip1 = TO_IP(str1), ip2 = TO_IP(str2) -| WHERE CIDR_MATCH(ip1, "1.0.0.0/8") -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_long.md b/docs/reference/esql/functions/kibana/docs/to_long.md deleted file mode 100644 index f5abb8a469001..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_long.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### TO_LONG -Converts an input value to a long value. If the input parameter is of a date type, -its value will be interpreted as milliseconds since the Unix epoch, converted to long. -Boolean *true* will be converted to long *1*, *false* to *0*. - -``` -ROW str1 = "2147483648", str2 = "2147483648.2", str3 = "foo" -| EVAL long1 = TO_LONG(str1), long2 = TO_LONG(str2), long3 = TO_LONG(str3) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_lower.md b/docs/reference/esql/functions/kibana/docs/to_lower.md deleted file mode 100644 index 91d8dd2c6956c..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_lower.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TO_LOWER -Returns a new string representing the input string converted to lower case. - -``` -ROW message = "Some Text" -| EVAL message_lower = TO_LOWER(message) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_radians.md b/docs/reference/esql/functions/kibana/docs/to_radians.md deleted file mode 100644 index f40387005d753..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_radians.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TO_RADIANS -Converts a number in degrees to radians. - -``` -ROW deg = [90.0, 180.0, 270.0] -| EVAL rad = TO_RADIANS(deg) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_string.md b/docs/reference/esql/functions/kibana/docs/to_string.md deleted file mode 100644 index fb6586d1e7761..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_string.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TO_STRING -Converts an input value into a string. - -``` -ROW a=10 -| EVAL j = TO_STRING(a) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_timeduration.md b/docs/reference/esql/functions/kibana/docs/to_timeduration.md deleted file mode 100644 index 52e32ba97d11c..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_timeduration.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### TO_TIMEDURATION -Converts an input value into a `time_duration` value. - -``` -row x = "2024-01-01"::datetime | eval y = x + "3 hours"::time_duration, z = x - to_timeduration("3 hours"); -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_unsigned_long.md b/docs/reference/esql/functions/kibana/docs/to_unsigned_long.md deleted file mode 100644 index 772784f4271f0..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_unsigned_long.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### TO_UNSIGNED_LONG -Converts an input value to an unsigned long value. If the input parameter is of a date type, -its value will be interpreted as milliseconds since the Unix epoch, converted to unsigned long. -Boolean *true* will be converted to unsigned long *1*, *false* to *0*. - -``` -ROW str1 = "2147483648", str2 = "2147483648.2", str3 = "foo" -| EVAL long1 = TO_UNSIGNED_LONG(str1), long2 = TO_ULONG(str2), long3 = TO_UL(str3) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_upper.md b/docs/reference/esql/functions/kibana/docs/to_upper.md deleted file mode 100644 index 6b1cc44ecdc2d..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_upper.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TO_UPPER -Returns a new string representing the input string converted to upper case. - -``` -ROW message = "Some Text" -| EVAL message_upper = TO_UPPER(message) -``` diff --git a/docs/reference/esql/functions/kibana/docs/to_version.md b/docs/reference/esql/functions/kibana/docs/to_version.md deleted file mode 100644 index c0109e3ee7320..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/to_version.md +++ /dev/null @@ -1,10 +0,0 @@ - - -### TO_VERSION -Converts an input string to a version value. - -``` -ROW v = TO_VERSION("1.2.3") -``` diff --git a/docs/reference/esql/functions/kibana/docs/top.md b/docs/reference/esql/functions/kibana/docs/top.md deleted file mode 100644 index 10db4e7ac5b55..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/top.md +++ /dev/null @@ -1,11 +0,0 @@ - - -### TOP -Collects the top values for a field. Includes repeated values. - -``` -FROM employees -| STATS top_salaries = TOP(salary, 3, "desc"), top_salary = MAX(salary) -``` diff --git a/docs/reference/esql/functions/kibana/docs/trim.md b/docs/reference/esql/functions/kibana/docs/trim.md deleted file mode 100644 index 9ebae1d78947e..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/trim.md +++ /dev/null @@ -1,12 +0,0 @@ - - -### TRIM -Removes leading and trailing whitespaces from a string. - -``` -ROW message = " some text ", color = " red " -| EVAL message = TRIM(message) -| EVAL color = TRIM(color) -``` diff --git a/docs/reference/esql/functions/kibana/docs/values.md b/docs/reference/esql/functions/kibana/docs/values.md deleted file mode 100644 index cba62fc27255e..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/values.md +++ /dev/null @@ -1,13 +0,0 @@ - - -### VALUES -Returns all values in a group as a multivalued field. The order of the returned values isn't guaranteed. If you need the values returned in order use <>. - -``` - FROM employees -| EVAL first_letter = SUBSTRING(first_name, 0, 1) -| STATS first_name=MV_SORT(VALUES(first_name)) BY first_letter -| SORT first_letter -``` diff --git a/docs/reference/esql/functions/kibana/docs/weighted_avg.md b/docs/reference/esql/functions/kibana/docs/weighted_avg.md deleted file mode 100644 index 6b0b2cc8cd287..0000000000000 --- a/docs/reference/esql/functions/kibana/docs/weighted_avg.md +++ /dev/null @@ -1,14 +0,0 @@ - - -### WEIGHTED_AVG -The weighted average of a numeric expression. - -``` -FROM employees -| STATS w_avg = WEIGHTED_AVG(salary, height) by languages -| EVAL w_avg = ROUND(w_avg) -| KEEP w_avg, languages -| SORT languages -``` diff --git a/server/src/main/java/org/elasticsearch/TransportVersions.java b/server/src/main/java/org/elasticsearch/TransportVersions.java index 350e93698e607..1efcf2e78f020 100644 --- a/server/src/main/java/org/elasticsearch/TransportVersions.java +++ b/server/src/main/java/org/elasticsearch/TransportVersions.java @@ -180,6 +180,7 @@ static TransportVersion def(int id) { public static final TransportVersion MAX_OPERATION_SIZE_REJECTIONS_ADDED = def(9_024_0_00); public static final TransportVersion RETRY_ILM_ASYNC_ACTION_REQUIRE_ERROR = def(9_025_0_00); public static final TransportVersion ESQL_SERIALIZE_BLOCK_TYPE_CODE = def(9_026_0_00); + public static final TransportVersion ESQL_THREAD_NAME_IN_DRIVER_PROFILE = def(9_027_0_00); /* * STOP! READ THIS FIRST! No, really, diff --git a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/DriverSleeps.java b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/DriverSleeps.java index d8856ebedb80b..57aa7b16d4725 100644 --- a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/DriverSleeps.java +++ b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/DriverSleeps.java @@ -31,18 +31,28 @@ public record DriverSleeps(Map counts, List first, List last) implements Writeable, ToXContentObject { /** * A record of a time the driver slept. - * @param reason The reason the driver slept - * @param sleep Millis since epoch when the driver slept - * @param wake Millis since epoch when the driver woke, or 0 if it is currently sleeping + * + * @param reason The reason the driver slept + * @param threadName The name of the thread this driver was running on when it went to sleep + * @param sleep Millis since epoch when the driver slept + * @param wake Millis since epoch when the driver woke, or 0 if it is currently sleeping */ - public record Sleep(String reason, long sleep, long wake) implements Writeable, ToXContentObject { + public record Sleep(String reason, String threadName, long sleep, long wake) implements Writeable, ToXContentObject { Sleep(StreamInput in) throws IOException { - this(in.readString(), in.readLong(), in.readLong()); + this( + in.readString(), + in.getTransportVersion().onOrAfter(TransportVersions.ESQL_THREAD_NAME_IN_DRIVER_PROFILE) ? in.readString() : "", + in.readLong(), + in.readLong() + ); } @Override public void writeTo(StreamOutput out) throws IOException { out.writeString(reason); + if (out.getTransportVersion().onOrAfter(TransportVersions.ESQL_THREAD_NAME_IN_DRIVER_PROFILE)) { + out.writeString(threadName); + } out.writeLong(sleep); out.writeLong(wake); } @@ -51,7 +61,7 @@ Sleep wake(long now) { if (isStillSleeping() == false) { throw new IllegalStateException("Already awake."); } - return new Sleep(reason, sleep, now); + return new Sleep(reason, Thread.currentThread().getName(), sleep, now); } public boolean isStillSleeping() { @@ -62,6 +72,7 @@ public boolean isStillSleeping() { public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); builder.field("reason", reason); + builder.field("thread_name", threadName); builder.timestampFieldsFromUnixEpochMillis("sleep_millis", "sleep", sleep); if (wake > 0) { builder.timestampFieldsFromUnixEpochMillis("wake_millis", "wake", wake); @@ -138,7 +149,7 @@ public DriverSleeps wake(long now) { private List append(List old, String reason, long now) { List sleeps = new ArrayList<>(old.size() + 1); sleeps.addAll(old); - sleeps.add(new Sleep(reason, now, 0)); + sleeps.add(new Sleep(reason, Thread.currentThread().getName(), now, 0)); return Collections.unmodifiableList(sleeps); } @@ -147,7 +158,7 @@ private List rollOnto(List old, String reason, long now) { for (int i = 1; i < old.size(); i++) { sleeps.add(old.get(i)); } - sleeps.add(new Sleep(reason, now, 0)); + sleeps.add(new Sleep(reason, Thread.currentThread().getName(), now, 0)); return Collections.unmodifiableList(sleeps); } diff --git a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverProfileTests.java b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverProfileTests.java index 5d6d110249d76..08087f249c19f 100644 --- a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverProfileTests.java +++ b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverProfileTests.java @@ -41,8 +41,8 @@ public void testToXContent() { ), new DriverSleeps( Map.of("driver time", 1L), - List.of(new DriverSleeps.Sleep("driver time", 1, 1)), - List.of(new DriverSleeps.Sleep("driver time", 1, 1)) + List.of(new DriverSleeps.Sleep("driver time", Thread.currentThread().getName(), 1, 1)), + List.of(new DriverSleeps.Sleep("driver time", Thread.currentThread().getName(), 1, 1)) ) ); assertThat(Strings.toString(status, true, true), equalTo(""" @@ -80,6 +80,7 @@ public void testToXContent() { "first" : [ { "reason" : "driver time", + "thread_name" : "$$THREAD", "sleep" : "1970-01-01T00:00:00.001Z", "sleep_millis" : 1, "wake" : "1970-01-01T00:00:00.001Z", @@ -89,6 +90,7 @@ public void testToXContent() { "last" : [ { "reason" : "driver time", + "thread_name" : "$$THREAD", "sleep" : "1970-01-01T00:00:00.001Z", "sleep_millis" : 1, "wake" : "1970-01-01T00:00:00.001Z", @@ -96,7 +98,7 @@ public void testToXContent() { } ] } - }""")); + }""".replace("$$THREAD", Thread.currentThread().getName()))); } @Override diff --git a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverSleepsTests.java b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverSleepsTests.java index a0d956fcd6f6f..eb86f59fe24f7 100644 --- a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverSleepsTests.java +++ b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverSleepsTests.java @@ -17,7 +17,9 @@ import java.io.IOException; import java.util.ArrayList; +import java.util.Formatter; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.TreeMap; @@ -57,7 +59,8 @@ public void testEmptyToXContent() { } public void testSleepingToXContent() { - assertThat(Strings.toString(DriverSleeps.empty().sleep("driver iterations", 1723555763000L), true, true), equalTo(""" + Formatter formatter = new Formatter(Locale.US); + String expected = formatter.format(""" { "counts" : { "driver iterations" : 1 @@ -65,6 +68,7 @@ public void testSleepingToXContent() { "first" : [ { "reason" : "driver iterations", + "thread_name" : "%1$s", "sleep" : "2024-08-13T13:29:23.000Z", "sleep_millis" : 1723555763000 } @@ -72,40 +76,47 @@ public void testSleepingToXContent() { "last" : [ { "reason" : "driver iterations", + "thread_name" : "%1$s", "sleep" : "2024-08-13T13:29:23.000Z", "sleep_millis" : 1723555763000 } ] - }""")); + }""", Thread.currentThread().getName()).out().toString(); + assertThat(Strings.toString(DriverSleeps.empty().sleep("driver iterations", 1723555763000L), true, true), equalTo(expected)); } public void testWakingToXContent() { + Formatter formatter = new Formatter(Locale.US); + String expected = formatter.format(""" + { + "counts" : { + "driver iterations" : 1 + }, + "first" : [ + { + "reason" : "driver iterations", + "thread_name" : "%1$s", + "sleep" : "2024-08-13T13:29:23.000Z", + "sleep_millis" : 1723555763000, + "wake" : "2024-08-13T13:31:03.000Z", + "wake_millis" : 1723555863000 + } + ], + "last" : [ + { + "reason" : "driver iterations", + "thread_name" : "%1$s", + "sleep" : "2024-08-13T13:29:23.000Z", + "sleep_millis" : 1723555763000, + "wake" : "2024-08-13T13:31:03.000Z", + "wake_millis" : 1723555863000 + } + ] + }""", Thread.currentThread().getName()).out().toString(); + assertThat( Strings.toString(DriverSleeps.empty().sleep("driver iterations", 1723555763000L).wake(1723555863000L), true, true), - equalTo(""" - { - "counts" : { - "driver iterations" : 1 - }, - "first" : [ - { - "reason" : "driver iterations", - "sleep" : "2024-08-13T13:29:23.000Z", - "sleep_millis" : 1723555763000, - "wake" : "2024-08-13T13:31:03.000Z", - "wake_millis" : 1723555863000 - } - ], - "last" : [ - { - "reason" : "driver iterations", - "sleep" : "2024-08-13T13:29:23.000Z", - "sleep_millis" : 1723555763000, - "wake" : "2024-08-13T13:31:03.000Z", - "wake_millis" : 1723555863000 - } - ] - }""") + equalTo(expected) ); } @@ -149,13 +160,13 @@ public void testTracking() throws IOException { expectedCounts.compute(reason, (k, v) -> v == null ? 1 : v + 1); sleeps = sleeps.sleep(reason, now); - expectedFirst.add(new DriverSleeps.Sleep(reason, now, 0)); + expectedFirst.add(new DriverSleeps.Sleep(reason, Thread.currentThread().getName(), now, 0)); assertThat(sleeps, equalTo(new DriverSleeps(expectedCounts, expectedFirst, expectedFirst))); assertXContent(sleeps, expectedCounts, expectedFirst, expectedFirst); now++; sleeps = sleeps.wake(now); - expectedFirst.set(expectedFirst.size() - 1, new DriverSleeps.Sleep(reason, now - 1, now)); + expectedFirst.set(expectedFirst.size() - 1, new DriverSleeps.Sleep(reason, Thread.currentThread().getName(), now - 1, now)); assertThat(sleeps, equalTo(new DriverSleeps(expectedCounts, expectedFirst, expectedFirst))); assertXContent(sleeps, expectedCounts, expectedFirst, expectedFirst); } @@ -172,13 +183,13 @@ public void testTracking() throws IOException { sleeps = sleeps.sleep(reason, now); expectedLast.remove(0); - expectedLast.add(new DriverSleeps.Sleep(reason, now, 0)); + expectedLast.add(new DriverSleeps.Sleep(reason, Thread.currentThread().getName(), now, 0)); assertThat(sleeps, equalTo(new DriverSleeps(expectedCounts, expectedFirst, expectedLast))); assertXContent(sleeps, expectedCounts, expectedFirst, expectedLast); now++; sleeps = sleeps.wake(now); - expectedLast.set(expectedLast.size() - 1, new DriverSleeps.Sleep(reason, now - 1, now)); + expectedLast.set(expectedLast.size() - 1, new DriverSleeps.Sleep(reason, Thread.currentThread().getName(), now - 1, now)); assertThat(sleeps, equalTo(new DriverSleeps(expectedCounts, expectedFirst, expectedLast))); assertXContent(sleeps, expectedCounts, expectedFirst, expectedLast); } diff --git a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverStatusTests.java b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverStatusTests.java index 2c4f2e37a1d64..3915c9d6a37b8 100644 --- a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverStatusTests.java +++ b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/DriverStatusTests.java @@ -45,8 +45,8 @@ public void testToXContent() { List.of(new OperatorStatus("ExchangeSink", ExchangeSinkOperatorStatusTests.simple())), new DriverSleeps( Map.of("driver time", 1L), - List.of(new DriverSleeps.Sleep("driver time", 1, 1)), - List.of(new DriverSleeps.Sleep("driver time", 1, 1)) + List.of(new DriverSleeps.Sleep("driver time", Thread.currentThread().getName(), 1, 1)), + List.of(new DriverSleeps.Sleep("driver time", Thread.currentThread().getName(), 1, 1)) ) ); assertThat(Strings.toString(status, true, true), equalTo(""" @@ -90,6 +90,7 @@ public void testToXContent() { "first" : [ { "reason" : "driver time", + "thread_name" : "$$THREAD", "sleep" : "1970-01-01T00:00:00.001Z", "sleep_millis" : 1, "wake" : "1970-01-01T00:00:00.001Z", @@ -99,6 +100,7 @@ public void testToXContent() { "last" : [ { "reason" : "driver time", + "thread_name" : "$$THREAD", "sleep" : "1970-01-01T00:00:00.001Z", "sleep_millis" : 1, "wake" : "1970-01-01T00:00:00.001Z", @@ -106,7 +108,7 @@ public void testToXContent() { } ] } - }""")); + }""".replace("$$THREAD", Thread.currentThread().getName()))); } @Override diff --git a/x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/RestEsqlIT.java b/x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/RestEsqlIT.java index 358bcfc647837..7265aad7cb8a4 100644 --- a/x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/RestEsqlIT.java +++ b/x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/RestEsqlIT.java @@ -500,6 +500,7 @@ public void testForceSleepsProfile() throws IOException { String operators = p.get("operators").toString(); MapMatcher sleepMatcher = matchesMap().entry("reason", "exchange empty") .entry("sleep_millis", greaterThan(0L)) + .entry("thread_name", Matchers.containsString("[esql_worker]")) // NB: this doesn't run in the test thread .entry("wake_millis", greaterThan(0L)); String description = p.get("description").toString(); switch (description) {