Skip to content

Commit

Permalink
[ES|QL] Update function metadata (elastic#197940)
Browse files Browse the repository at this point in the history
This PR updates the function definitions and inline docs based on the
latest metadata from Elasticsearch.
  • Loading branch information
kibanamachine authored Oct 28, 2024
1 parent 37a4691 commit d70e01a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ const maxDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -1035,7 +1035,7 @@ const minDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -1491,7 +1491,7 @@ const topDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
],
supportedCommands: ['stats', 'inlinestats', 'metrics'],
Expand Down Expand Up @@ -1590,7 +1590,7 @@ const valuesDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ const coalesceDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
minParams: 1,
},
{
Expand All @@ -957,7 +957,7 @@ const coalesceDefinition: FunctionDefinition = {
optional: true,
},
],
returnType: 'text',
returnType: 'keyword',
minParams: 1,
},
{
Expand Down Expand Up @@ -1973,7 +1973,7 @@ const greatestDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
minParams: 1,
},
{
Expand All @@ -1989,7 +1989,7 @@ const greatestDefinition: FunctionDefinition = {
optional: true,
},
],
returnType: 'text',
returnType: 'keyword',
minParams: 1,
},
{
Expand Down Expand Up @@ -2484,7 +2484,7 @@ const leastDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
minParams: 1,
},
{
Expand All @@ -2500,7 +2500,7 @@ const leastDefinition: FunctionDefinition = {
optional: true,
},
],
returnType: 'text',
returnType: 'keyword',
minParams: 1,
},
{
Expand Down Expand Up @@ -3198,7 +3198,7 @@ const ltrimDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
],
supportedCommands: ['stats', 'inlinestats', 'metrics', 'eval', 'where', 'row', 'sort'],
Expand Down Expand Up @@ -3475,7 +3475,7 @@ const mvAppendDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -3920,7 +3920,7 @@ const mvDedupeDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -4067,7 +4067,7 @@ const mvFirstDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -4224,7 +4224,7 @@ const mvLastDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -4341,7 +4341,7 @@ const mvMaxDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -4583,7 +4583,7 @@ const mvMinDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -5054,7 +5054,7 @@ const mvSliceDefinition: FunctionDefinition = {
optional: true,
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -5221,7 +5221,7 @@ const mvSortDefinition: FunctionDefinition = {
acceptedValues: ['asc', 'desc'],
},
],
returnType: 'text',
returnType: 'keyword',
},
{
params: [
Expand Down Expand Up @@ -6131,7 +6131,7 @@ const reverseDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
],
supportedCommands: ['stats', 'inlinestats', 'metrics', 'eval', 'where', 'row', 'sort'],
Expand Down Expand Up @@ -6323,7 +6323,7 @@ const rtrimDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
],
supportedCommands: ['stats', 'inlinestats', 'metrics', 'eval', 'where', 'row', 'sort'],
Expand Down Expand Up @@ -8597,7 +8597,7 @@ const toLowerDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
],
supportedCommands: ['stats', 'inlinestats', 'metrics', 'eval', 'where', 'row', 'sort'],
Expand Down Expand Up @@ -8995,7 +8995,7 @@ const toUpperDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
],
supportedCommands: ['stats', 'inlinestats', 'metrics', 'eval', 'where', 'row', 'sort'],
Expand Down Expand Up @@ -9077,7 +9077,7 @@ const trimDefinition: FunctionDefinition = {
optional: false,
},
],
returnType: 'text',
returnType: 'keyword',
},
],
supportedCommands: ['stats', 'inlinestats', 'metrics', 'eval', 'where', 'row', 'sort'],
Expand Down

0 comments on commit d70e01a

Please sign in to comment.