Skip to content

Commit

Permalink
[ES|QL] Updates functions metadata (#205472)
Browse files Browse the repository at this point in the history
## Summary

Manual update of the function metadata as the script failed on Monday.
  • Loading branch information
stratoula authored Jan 3, 2025
1 parent cf3c7bd commit c2d20d3
Show file tree
Hide file tree
Showing 3 changed files with 543 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,64 @@ const stCentroidAggDefinition: FunctionDefinition = {
examples: ['FROM airports\n| STATS centroid=ST_CENTROID_AGG(location)'],
};

// Do not edit this manually... generated by scripts/generate_function_definitions.ts
const stExtentAggDefinition: FunctionDefinition = {
type: 'agg',
name: 'st_extent_agg',
description: i18n.translate('kbn-esql-validation-autocomplete.esql.definitions.st_extent_agg', {
defaultMessage:
'Calculate the spatial extent over a field with geometry type. Returns a bounding box for all values of the field.',
}),
preview: false,
alias: undefined,
signatures: [
{
params: [
{
name: 'field',
type: 'cartesian_point',
optional: false,
},
],
returnType: 'cartesian_shape',
},
{
params: [
{
name: 'field',
type: 'cartesian_shape',
optional: false,
},
],
returnType: 'cartesian_shape',
},
{
params: [
{
name: 'field',
type: 'geo_point',
optional: false,
},
],
returnType: 'geo_shape',
},
{
params: [
{
name: 'field',
type: 'geo_shape',
optional: false,
},
],
returnType: 'geo_shape',
},
],
supportedCommands: ['stats', 'inlinestats', 'metrics'],
supportedOptions: undefined,
validate: undefined,
examples: ['FROM airports\n| WHERE country == "India"\n| STATS extent = ST_EXTENT_AGG(location)'],
};

// Do not edit this manually... generated by scripts/generate_function_definitions.ts
const stdDevDefinition: FunctionDefinition = {
type: 'agg',
Expand Down Expand Up @@ -1921,6 +1979,7 @@ export const aggregationFunctionDefinitions = [
minDefinition,
percentileDefinition,
stCentroidAggDefinition,
stExtentAggDefinition,
stdDevDefinition,
sumDefinition,
topDefinition,
Expand Down
Loading

0 comments on commit c2d20d3

Please sign in to comment.