-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Spark concat_ws function (#8854)
Summary: Add concat_ws Spark function which returns the concatenation for the input, separated by a separator (the first argument). It allows variable number of VARCHAR or ARRAY\<VARCHAR\> arguments. And these two types can be used in combination. This function is a bit similar to [ConcatFunction](https://github.com/facebookincubator/velox/blob/main/velox/functions/prestosql/StringFunctions.cpp#L140), except that `concat_ws` requires separator and supports using ARRAY<VARCHAR> type and mixed types. This PR is based on #6292 (author: unigof). There are a few bug fixes and improvements. Also made some changes to align with Spark. Doc [link](https://docs.databricks.com/en/sql/language-manual/functions/concat_ws.html). Pull Request resolved: #8854 Reviewed By: kgpai Differential Revision: D66898251 Pulled By: bikramSingh91 fbshipit-source-id: 1fcd193a245bea4062c4e20d1e1db9ad6cc3290b
- Loading branch information
1 parent
aa59678
commit bddddf8
Showing
8 changed files
with
771 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.