Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new CONCAT_WS UDF #5534

Merged
merged 2 commits into from
Jun 4, 2020
Merged

Conversation

blueedgenick
Copy link
Contributor

Working with concat to solve something yesterday i realized we also need the "with separator" version, as seen in MySQL, SQL Server, etc., so here it is.

Concatenates together an abitrary number of strings, inserting a designated separator between each one. NULL strings are skipped in the output so you don't get pointlessly-duplicated separators.

Example:
CONCAT_WS(', ', 'apple', 'banana', NULL, 'date') will return 'apple, banana, date'

@blueedgenick blueedgenick requested review from JimGalasyn and a team as code owners June 3, 2020 01:26
Copy link
Member

@JimGalasyn JimGalasyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vpapavas vpapavas self-assigned this Jun 3, 2020
Copy link
Member

@vpapavas vpapavas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@blueedgenick blueedgenick merged commit f3ae9b2 into confluentinc:master Jun 4, 2020
@blueedgenick blueedgenick deleted the concat_ws_udf branch June 11, 2020 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants