Skip to content
Permalink
Browse files

Merge pull request #7701 from DelazJ/patch-2

Fix help of some array functions
  • Loading branch information
m-kuhn committed Aug 24, 2018
2 parents 31fadd1 + 40223db commit db4d18c59e1d94a7e7372ec17c124fdefd5ab775
Showing with 5 additions and 4 deletions.
  1. +3 −2 resources/function_help/json/array_to_string
  2. +2 −2 resources/function_help/json/generate_series
@@ -1,12 +1,13 @@
{
"name": "array_to_string",
"type": "function",
"description": "Concatenates array elements into a string separated by a delimiter using and optional string for empty values.",
"description": "Concatenates array elements into a string separated by a delimiter and using optional string for empty values.",
"arguments": [
{"arg":"array", "description":"the input array"},
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to separate concatenated array elements"},
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}],
"examples": [ { "expression":"array_to_string(array('1','2','3'),',')", "returns":"'1,2,3'"},
"examples": [ { "expression":"array_to_string(array('1','2','3'))", "returns":"'1,2,3'"},
{ "expression":"array_to_string(array(1,2,3),'-')", "returns":"'1-2-3'"},
{ "expression":"array_to_string(array('1','','3'),',','0')", "returns":"'1,0,3'"}
]
}
@@ -7,7 +7,7 @@
{"arg":"stop", "description":"value that ends the sequence once reached"},
{"arg":"step","optional":true,"default":"1","description":"value used as the increment between values"}
],
"examples": [ { "expression":"generate_series('1,5)", "returns":"[ 1, 2, 3, 4, 5 ]"},
{ "expression":"generate_series('5,1,-1)", "returns":"[ 5, 4, 3, 2, 1 ]"}
"examples": [ { "expression":"generate_series(1,5)", "returns":"[ 1, 2, 3, 4, 5 ]"},
{ "expression":"generate_series(5,1,-1)", "returns":"[ 5, 4, 3, 2, 1 ]"}
]
}

0 comments on commit db4d18c

Please sign in to comment.
You can’t perform that action at this time.