[SERVER-51486] Need of toTitleize Aggregation Pipeline Operator Created: 11/Oct/20 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Akansha kumari | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Backwards Compatibility: | Minor Change |
| Participants: |
| Description |
|
Currently there isn't existing Aggregate Pipeline operator which returns a string in Tileize format. There are some use-case where we need the result in Titleize format. And it will be useful if we add that operator. Kindly let me know if you also think there is a need for toTileize operator... |
| Comments |
| Comment by Akansha kumari [ 21/Oct/20 ] | |||||||||||||
|
Hi Asya, This would work. Thank-you for the response. I guess we can close this ticket then. | |||||||||||||
| Comment by Asya Kamsky [ 20/Oct/20 ] | |||||||||||||
|
There are a few other ways to do it ...
This will treat " ", "_", and "-" as character indicating next letter should be capitalized. | |||||||||||||
| Comment by Akansha kumari [ 20/Oct/20 ] | |||||||||||||
|
Yes Asya, Correct! It will capitalise the first letter of every word (space separated) of a string.
| |||||||||||||
| Comment by Asya Kamsky [ 20/Oct/20 ] | |||||||||||||
|
The above syntax might be simpler if we supported some sort of string "join" like SERVER-15697 (if it took a separator on which to join the array of words).
| |||||||||||||
| Comment by Asya Kamsky [ 20/Oct/20 ] | |||||||||||||
|
I'm not sure what this would do. Is this meant to take a string of words (space separated) and capitalize first letter of every word? input: "kids went to the store" output: "Kids Went To The Store"?
I'm not sure this is a common enough functionality to have a named expression for... | |||||||||||||
| Comment by Akansha kumari [ 14/Oct/20 ] | |||||||||||||
|
Hi Edwin, I would like to work on the feature I requested. | |||||||||||||
| Comment by Edwin Zhou [ 14/Oct/20 ] | |||||||||||||
|
Thank you for your feature request. We're assigning this ticket to the appropriate team to be evaluated against our currently planned work. Updates will be posted on this ticket as they happen. Best, Edwin |