Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Apr 16, 2024
1 parent 20df5f9 commit d61d6f9
Show file tree
Hide file tree
Showing 2 changed files with 235 additions and 190 deletions.
12 changes: 6 additions & 6 deletions velox/docs/functions/spark/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ Unless specified otherwise, all functions return NULL if at least one of the arg

.. spark:function:: concat_ws(separator, [string]/[array<string>], ...) -> varchar
Returns the concatenation of ``string`` and all elements in ``array<string>``, separated
by ``separator``. ``separator`` can be empty string. It takes variable number of remaining
arguments. And ``string`` & ``array<string>`` can be used in combination. NULL element is
skipped in the concatenation. If ``separator`` is NULL, returns NULL, regardless of the
following inputs. For non-NULL ``separator``, if no remaining input or all remaining inputs
are NULL, returns an empty string. ::
Returns the concatenation for ``string`` and all elements in ``array<string>``, separated
by ``separator``. ``separator`` can be an empty string. It can take variable number of
remaining arguments, where ``string`` & ``array<string>`` can be used in combination. NULL
element is skipped in the concatenation. If ``separator`` is NULL, returns NULL, regardless
of the following inputs. For non-NULL ``separator``, if no remaining input or all remaining
inputs are NULL, returns an empty string. ::

SELECT concat_ws('~', 'a', 'b', 'c'); -- 'a~b~c'
SELECT concat_ws('~', ['a', 'b', 'c'], ['d']); -- 'a~b~c~d'
Expand Down
Loading

0 comments on commit d61d6f9

Please sign in to comment.