Skip to content

Commit db4d18c

Browse files
authored
Merge pull request #7701 from DelazJ/patch-2
Fix help of some array functions
2 parents 31fadd1 + 40223db commit db4d18c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "array_to_string",
33
"type": "function",
4-
"description": "Concatenates array elements into a string separated by a delimiter using and optional string for empty values.",
4+
"description": "Concatenates array elements into a string separated by a delimiter and using optional string for empty values.",
55
"arguments": [
66
{"arg":"array", "description":"the input array"},
77
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to separate concatenated array elements"},
88
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}],
9-
"examples": [ { "expression":"array_to_string(array('1','2','3'),',')", "returns":"'1,2,3'"},
9+
"examples": [ { "expression":"array_to_string(array('1','2','3'))", "returns":"'1,2,3'"},
10+
{ "expression":"array_to_string(array(1,2,3),'-')", "returns":"'1-2-3'"},
1011
{ "expression":"array_to_string(array('1','','3'),',','0')", "returns":"'1,0,3'"}
1112
]
1213
}

resources/function_help/json/generate_series

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{"arg":"stop", "description":"value that ends the sequence once reached"},
88
{"arg":"step","optional":true,"default":"1","description":"value used as the increment between values"}
99
],
10-
"examples": [ { "expression":"generate_series('1,5)", "returns":"[ 1, 2, 3, 4, 5 ]"},
11-
{ "expression":"generate_series('5,1,-1)", "returns":"[ 5, 4, 3, 2, 1 ]"}
10+
"examples": [ { "expression":"generate_series(1,5)", "returns":"[ 1, 2, 3, 4, 5 ]"},
11+
{ "expression":"generate_series(5,1,-1)", "returns":"[ 5, 4, 3, 2, 1 ]"}
1212
]
1313
}

0 commit comments

Comments
 (0)